summaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-08-20 20:10:04 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-08-20 20:10:04 +0000
commitfc918885e03944afe47437c301a28bc1cba24d72 (patch)
treeef64b641e783857f4446322cf941f704d0ef65e4 /sync.c
parentea8a28253ba758145abfd952d503c8b13163e9c1 (diff)
downloadnasm-fc918885e03944afe47437c301a28bc1cba24d72.tar.gz
nasm-fc918885e03944afe47437c301a28bc1cba24d72.tar.bz2
nasm-fc918885e03944afe47437c301a28bc1cba24d72.zip
sync.c: change ULONG_MAX to UINT32_MAX
The value returned is uint32_t, not unsigned long. This creates a warning when compiling on 64-bit machines.
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync.c b/sync.c
index fefdd86..88d882a 100644
--- a/sync.c
+++ b/sync.c
@@ -108,6 +108,6 @@ uint32_t next_sync(uint32_t position, uint32_t *length)
} else {
if (length)
*length = 0L;
- return ULONG_MAX;
+ return UINT32_MAX;
}
}