summaryrefslogtreecommitdiff
path: root/src/common/infer.c
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-01-28 19:02:21 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-01-28 19:02:21 +0000
commitf627f77f23d1497c9e1f4269b5c8812d12b42f18 (patch)
tree708772d83a8355e25155cf233d5a9e38f8ad4d96 /src/common/infer.c
parent6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1 (diff)
downloadicon-upstream.tar.gz
Imported Upstream version 9.5.0upstream/9.5.0upstream
Diffstat (limited to 'src/common/infer.c')
-rw-r--r--src/common/infer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/infer.c b/src/common/infer.c
index 819bf8b..aa38ea8 100644
--- a/src/common/infer.c
+++ b/src/common/infer.c
@@ -23,8 +23,8 @@ int main(int argc, char *argv[]) {
assert (sizeof(int) >= 4); /* need 32-bit ints or better */
assert (sizeof(long) <= 8); /* but can't handle over 64 */
printf("/* generated by infer.c */\n");
- printf("#define IntBits %d\n", 8 * sizeof(int));
- printf("#define WordBits %d\n", 8 * sizeof(void *));
+ printf("#define IntBits %d\n", (int) (8 * sizeof(int)));
+ printf("#define WordBits %d\n", (int) (8 * sizeof(void *)));
if (offsetof(tstruct, d) > sizeof(void *))
printf("#define Double\n");
if (atdepth(2) > atdepth(1))