summaryrefslogtreecommitdiff
path: root/src/gen.c
diff options
context:
space:
mode:
authorrlar <rlar>2016-02-28 19:38:21 +0100
committerWill Estes <westes575@gmail.com>2016-03-01 06:08:30 -0500
commit455205b2e0b09dcebd7210ca7c9215b5854a71ff (patch)
treea36315df59cb4df0b5498cef234d4ad6d82fd5d6 /src/gen.c
parent265e8e5c90e54f803b94c98a9cfbb1a37804e0b5 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen.c b/src/gen.c
index 7f30570..4688709 100644
--- a/src/gen.c
+++ b/src/gen.c
@@ -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{ \\");