Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wilkins <Jason.A.Wilkins@gmail.com>2012-11-24 18:19:21 +0400
committerJason Wilkins <Jason.A.Wilkins@gmail.com>2012-11-24 18:19:21 +0400
commit9b701b7d32c2de0656c7bc1e21200ccbe3d70c38 (patch)
tree51003f4b16740ed23af930401435f99167f41b6f
parent993d5e58bde92bfabc14e875e6fabf2a86b143da (diff)
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.
-rw-r--r--source/blender/imbuf/intern/cineon/cineonlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/cineon/cineonlib.c b/source/blender/imbuf/intern/cineon/cineonlib.c
index 9926d8c8562..3049a5be514 100644
--- a/source/blender/imbuf/intern/cineon/cineonlib.c
+++ b/source/blender/imbuf/intern/cineon/cineonlib.c
@@ -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;
}