summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrlar <rlar>2016-03-16 19:45:56 +0100
committerWill Estes <westes575@gmail.com>2016-03-18 14:46:43 -0400
commitc2429b5a4a6a0e7030c36f75e16ec68923f32cc6 (patch)
tree9fee099bfdacffc428535f887b4f5873f6e91f2f
parent70b804fb02009ffa33426fab5196d9d14903b50d (diff)
downloadflex-git-c2429b5a4a6a0e7030c36f75e16ec68923f32cc6.tar.gz
warning: conversion to 'flex_uint32_t' from 'long unsigned int' may alter its value [-Wconversion]
struct yytbl_reader, member bread is of type flex_uint32_t
-rw-r--r--src/flex.skl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flex.skl b/src/flex.skl
index d94b075..4c7d322 100644
--- a/src/flex.skl
+++ b/src/flex.skl
@@ -3110,7 +3110,7 @@ static int yytbl_read8 (void *v, struct yytbl_reader * rd)
errno = EIO;
return -1;
}
- rd->bread += sizeof(flex_uint8_t);
+ rd->bread += (flex_uint32_t) sizeof(flex_uint8_t);
return 0;
}
@@ -3122,7 +3122,7 @@ static int yytbl_read16 (void *v, struct yytbl_reader * rd)
return -1;
}
*((flex_uint16_t *) v) = ntohs (*((flex_uint16_t *) v));
- rd->bread += sizeof(flex_uint16_t);
+ rd->bread += (flex_uint32_t) sizeof(flex_uint16_t);
return 0;
}
@@ -3134,7 +3134,7 @@ static int yytbl_read32 (void *v, struct yytbl_reader * rd)
return -1;
}
*((flex_uint32_t *) v) = ntohl (*((flex_uint32_t *) v));
- rd->bread += sizeof(flex_uint32_t);
+ rd->bread += (flex_uint32_t) sizeof(flex_uint32_t);
return 0;
}
@@ -3177,7 +3177,7 @@ static int yytbl_hdr_read YYFARGS2(struct yytbl_hdr *, th, struct yytbl_reader *
return -1;
}
else
- rd->bread += bytes;
+ rd->bread += (flex_uint32_t) bytes;
th->th_name = th->th_version + strlen (th->th_version) + 1;
return 0;