mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-24 03:33:03 +00:00
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.
This commit is contained in:
@@ -694,9 +694,9 @@ const char *source = YY_NULLPTR;
|
|||||||
static
|
static
|
||||||
]AT_YYLEX_PROTOTYPE[
|
]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. */
|
/* As in BASIC, line numbers go from 10 to 10. */
|
||||||
]AT_LOC_FIRST_LINE[ = ]AT_LOC_FIRST_COLUMN[ = 10 * c;
|
]AT_LOC_FIRST_LINE[ = ]AT_LOC_FIRST_COLUMN[ = 10 * c;
|
||||||
]AT_LOC_LAST_LINE[ = ]AT_LOC_LAST_COLUMN[ = ]AT_LOC_FIRST_LINE[ + 9;
|
]AT_LOC_LAST_LINE[ = ]AT_LOC_LAST_COLUMN[ = ]AT_LOC_FIRST_LINE[ + 9;
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ main (int argc, char **argv)
|
|||||||
{
|
{
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
int c;
|
int c;
|
||||||
unsigned int i;
|
unsigned i;
|
||||||
static int lineNum = 1;
|
static int lineNum = 1;
|
||||||
static int colNum = 0;
|
static int colNum = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user