remove even more warnings

64-bit cleanliness issue with auto-NULL-appending macros
This commit is contained in:
leitner
2005-05-12 06:52:29 +00:00
parent 6196f771cd
commit eeffc36387
20 changed files with 49 additions and 46 deletions

View File

@@ -56,7 +56,7 @@ void* array_allocate(array* x,uint64 membersize,int64 pos) {
/* second case of overflow: pos*membersize too large */
if (__unlikely(!umult64(membersize,pos+1,&wanted))) return 0;
if (__unlikely(wanted >= x->allocated)) {
if (__unlikely(wanted >= (uint64)x->allocated)) {
/* round up a little */
if (membersize<8)
wanted=(wanted+127)&(-128ll); /* round up to multiple of 128 */