diff options
author | rlar <rlar> | 2016-03-20 20:13:42 +0100 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-03-28 16:41:15 -0400 |
commit | fab3f206e4fae1cf329e82a47a0b9d50975dd1b7 (patch) | |
tree | be949f75fc60643ac632a319fad77b4e029490df /src/main.c | |
parent | 42325b8b3934a9577d4bb347d6e5cf9a06945e9a (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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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) { |