summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assemble.c b/assemble.c
index fef2ab77..9d4d037b 100644
--- a/assemble.c
+++ b/assemble.c
@@ -267,7 +267,7 @@ long assemble (long segment, long offset, int bits,
fseek (fp, base, SEEK_SET);
l = len;
while (l > 0) {
- long m = fread (buf, 1, (l>sizeof(buf)?sizeof(buf):l),
+ long m = fread (buf, 1, (l>(int)sizeof(buf)?sizeof(buf):l),
fp);
if (!m) {
/*