diff options
author | rlar <rlar> | 2016-02-28 19:38:21 +0100 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-03-01 06:08:30 -0500 |
commit | 455205b2e0b09dcebd7210ca7c9215b5854a71ff (patch) | |
tree | a36315df59cb4df0b5498cef234d4ad6d82fd5d6 /src/gen.c | |
parent | 265e8e5c90e54f803b94c98a9cfbb1a37804e0b5 (diff) |
avoid warning, add (int) cast to the read() return value
For similiarity with the fread() case.
Diffstat (limited to 'src/gen.c')
-rw-r--r-- | src/gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1875,7 +1875,7 @@ void make_tables (void) if (!C_plus_plus) { if (use_read) { outn ("\terrno=0; \\"); - outn ("\twhile ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \\"); + outn ("\twhile ( (result = (int) read( fileno(yyin), buf, max_size )) < 0 ) \\"); outn ("\t{ \\"); outn ("\t\tif( errno != EINTR) \\"); outn ("\t\t{ \\"); |