summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorrlar <rlar>2016-03-20 20:13:42 +0100
committerWill Estes <westes575@gmail.com>2016-03-28 16:41:15 -0400
commitfab3f206e4fae1cf329e82a47a0b9d50975dd1b7 (patch)
treebe949f75fc60643ac632a319fad77b4e029490df /src/main.c
parent42325b8b3934a9577d4bb347d6e5cf9a06945e9a (diff)
avoid warning in generated code, with -Cf
warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index e1edac3..bc1a8bd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1609,10 +1609,7 @@ void readin (void)
outn ("\n#define FLEX_DEBUG");
OUT_BEGIN_CODE ();
- if (csize == 256)
- outn ("typedef unsigned char YY_CHAR;");
- else
- outn ("typedef char YY_CHAR;");
+ outn ("typedef flex_uint8_t YY_CHAR;");
OUT_END_CODE ();
if (C_plus_plus) {