[Bf-blender-cvs] [815919b] master: fixed printf format warning that occurred with 64-bit targets
Jason Wilkins
noreply at git.blender.org
Sat Oct 11 06:22:20 CEST 2014
Commit: 815919b1fb79b60f82d72cd36ad2ba0d6fe86671
Author: Jason Wilkins
Date: Fri Oct 10 23:17:07 2014 -0500
Branches: master
https://developer.blender.org/rB815919b1fb79b60f82d72cd36ad2ba0d6fe86671
fixed printf format warning that occurred with 64-bit targets
===================================================================
M intern/ghost/intern/GHOST_Context.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_Context.cpp b/intern/ghost/intern/GHOST_Context.cpp
index 2815f9a..f69f218 100644
--- a/intern/ghost/intern/GHOST_Context.cpp
+++ b/intern/ghost/intern/GHOST_Context.cpp
@@ -115,17 +115,17 @@ bool win32_chk(bool result, const char *file, int line, const char *text)
#ifndef NDEBUG
_ftprintf(
stderr,
- "%s(%d):[%s] -> Win32 Error# (%d): %s",
+ "%s(%d):[%s] -> Win32 Error# (%lu): %s",
file,
line,
text,
- error,
+ (unsigned long)error,
msg);
#else
_ftprintf(
stderr,
- "Win32 Error# (%d): %s",
- error,
+ "Win32 Error# (%lu): %s",
+ (unsigned long)error,
msg);
#endif
More information about the Bf-blender-cvs
mailing list