[ros-diffs] [jmorlan] 41889: Don't use non-portable %zd format. Instead, use %d and cast the variable to an int to ensure printf can read the argument properly
jmorlan at svn.reactos.org
jmorlan at svn.reactos.org
Sat Jul 11 18:16:40 CEST 2009
Author: jmorlan
Date: Sat Jul 11 20:16:39 2009
New Revision: 41889
URL: http://svn.reactos.org/svn/reactos?rev=41889&view=rev
Log:
Don't use non-portable %zd format. Instead, use %d and cast the variable to an int to ensure printf can read the argument properly
Modified:
trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp
Modified: trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp?rev=41889&r1=41888&r2=41889&view=diff
==============================================================================
--- trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp [iso-8859-1] (original)
+++ trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp [iso-8859-1] Sat Jul 11 20:16:39 2009
@@ -499,8 +499,8 @@
if ( ModuleHandlerInformations[i].cflags && ModuleHandlerInformations[i].cflags[0] )
{
fprintf ( fMakefile,
- "MODULETYPE%zd_%sFLAGS:=%s\n",
- i,
+ "MODULETYPE%d_%sFLAGS:=%s\n",
+ (int)i,
"C",
ModuleHandlerInformations[i].cflags );
}
@@ -508,8 +508,8 @@
if ( ModuleHandlerInformations[i].cflags && ModuleHandlerInformations[i].cflags[0] )
{
fprintf ( fMakefile,
- "MODULETYPE%zd_%sFLAGS:=%s\n",
- i,
+ "MODULETYPE%d_%sFLAGS:=%s\n",
+ (int)i,
"CXX",
ModuleHandlerInformations[i].cflags );
}
@@ -517,8 +517,8 @@
if ( ModuleHandlerInformations[i].nasmflags && ModuleHandlerInformations[i].nasmflags[0] )
{
fprintf ( fMakefile,
- "MODULETYPE%zd_%sFLAGS:=%s\n",
- i,
+ "MODULETYPE%d_%sFLAGS:=%s\n",
+ (int)i,
"NASM",
ModuleHandlerInformations[i].nasmflags );
}
More information about the Ros-diffs
mailing list