[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52532] trunk/blender/source/blender/imbuf /intern/cineon/cineonlib.c: cineonlib.c: Quieted warning, inconsistency between printf format (%lu) and the type of an argument ( uintptr_t??)

Jason Wilkins Jason.A.Wilkins at gmail.com
Sat Nov 24 15:19:22 CET 2012


Revision: 52532
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52532
Author:   jwilkins
Date:     2012-11-24 14:19:21 +0000 (Sat, 24 Nov 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/imbuf/intern/cineon/cineonlib.c

Modified: trunk/blender/source/blender/imbuf/intern/cineon/cineonlib.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/cineon/cineonlib.c	2012-11-24 08:10:56 UTC (rev 52531)
+++ trunk/blender/source/blender/imbuf/intern/cineon/cineonlib.c	2012-11-24 14:19:21 UTC (rev 52532)
@@ -188,7 +188,7 @@
 	}
 	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;
 	}




More information about the Bf-blender-cvs mailing list