From 4246cd81df3101b1abef3f5914f6b3fa7d1b44de Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 5 Oct 2019 17:28:51 +0200 Subject: tests: avoid a GCC 4.8 warning GCC 4.8 reports: input.y:57:33: error: conversion to 'int' from 'long unsigned int' may alter its value [-Werror=conversion] int input_elts = sizeof input / sizeof input[0]; ^ * tests/local.at (AT_YYLEX_DEFINE(c)): Add a cast (sorry, Paul!). --- tests/local.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/local.at b/tests/local.at index 17759b2f..579b85c3 100644 --- a/tests/local.at +++ b/tests/local.at @@ -558,7 +558,7 @@ static static int toknum = 0; int res; ]AT_USE_LEX_ARGS[ - int input_elts = sizeof input / sizeof input[0]; + int input_elts = (int) (sizeof input / sizeof input[0]); (void) input_elts; assert (0 <= toknum && toknum < input_elts); res = input[toknum++]; -- cgit v1.2.1