[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/7] style: tests: remove useless reference to 'int' in integral
From: |
Akim Demaille |
Subject: |
[PATCH 2/7] style: tests: remove useless reference to 'int' in integral types |
Date: |
Sun, 12 Aug 2018 15:16:11 +0200 |
* tests/actions.at, tests/cxx-type.at: Prefer 'unsigned' to 'unsigned
int'. Likewise for long and short.
---
tests/actions.at | 4 ++--
tests/cxx-type.at | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/actions.at b/tests/actions.at
index d5425d0b..8289588e 100644
--- a/tests/actions.at
+++ b/tests/actions.at
@@ -694,9 +694,9 @@ const char *source = YY_NULLPTR;
static
]AT_YYLEX_PROTOTYPE[
{
- static unsigned int counter = 0;
+ static unsigned counter = 0;
- unsigned int c = ]AT_VAL[]m4_ifval([$6], [.ival])[ = counter++;
+ unsigned c = ]AT_VAL[]m4_ifval([$6], [.ival])[ = counter++;
/* As in BASIC, line numbers go from 10 to 10. */
]AT_LOC_FIRST_LINE[ = ]AT_LOC_FIRST_COLUMN[ = 10 * c;
]AT_LOC_LAST_LINE[ = ]AT_LOC_LAST_COLUMN[ = ]AT_LOC_FIRST_LINE[ + 9;
diff --git a/tests/cxx-type.at b/tests/cxx-type.at
index 54b055a3..cf58cf85 100644
--- a/tests/cxx-type.at
+++ b/tests/cxx-type.at
@@ -139,7 +139,7 @@ main (int argc, char **argv)
{
char buffer[256];
int c;
- unsigned int i;
+ unsigned i;
static int lineNum = 1;
static int colNum = 0;
--
2.18.0
- [PATCH 0/7] remove useless reference to 'int' in integral types, Akim Demaille, 2018/08/12
- [PATCH 7/7] regen, Akim Demaille, 2018/08/12
- [PATCH 6/7] style: m4: remove useless reference to 'int' in integral types, Akim Demaille, 2018/08/12
- [PATCH 1/7] style: data: remove useless reference to 'int' in integral types, Akim Demaille, 2018/08/12
- [PATCH 4/7] style: lib: remove useless reference to 'int' in integral types, Akim Demaille, 2018/08/12
- [PATCH 3/7] style: src: remove useless reference to 'int' in integral types, Akim Demaille, 2018/08/12
- [PATCH 2/7] style: tests: remove useless reference to 'int' in integral types,
Akim Demaille <=
- [PATCH 5/7] style: doc: remove useless reference to 'int' in integral types, Akim Demaille, 2018/08/12