cineonlib.c: Quieted warning, inconsistency between printf format (%lu) and the type of an argument (uintptr_t??)

The struct member is an unsigned int, not a pointer, so it is mysterious why the orignal code cast it to an uintptr_t.

I changed the code to cast it to an unsigned long so that it matches the format.
This commit is contained in:
Jason Wilkins 2012-11-24 14:19:21 +00:00
parent 993d5e58bd
commit 9b701b7d32

@ -188,7 +188,7 @@ LogImageFile *cineonOpen(const unsigned char *byteStuff, int fromMemory, size_t
}
else {
if (verbose) printf("Cineon: Bad magic number %lu in \"%s\".\n",
(uintptr_t)header.fileHeader.magic_num, byteStuff);
(unsigned long)header.fileHeader.magic_num, byteStuff);
logImageClose(cineon);
return 0;
}