From e3b7c0182073c96a2717090c6f30a9526d6b0387 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 12 Aug 2018 14:53:59 +0200 Subject: [PATCH] style: tests: remove useless reference to 'int' in integral types * 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;