Fix warnings on x86-64. By fvbommel.

This commit is contained in:
Christian Kamm
2008-11-28 21:24:08 +01:00
parent cc6bde46f9
commit cdbc4f84d2
13 changed files with 27 additions and 26 deletions

View File

@@ -6,6 +6,7 @@
//#include "d-gcc-includes.h"
//#include "total.h"
#include "mars.h"
#include "statement.h"
#include "scope.h"
#include "declaration.h"
@@ -419,7 +420,7 @@ static void remap_outargs(std::string& insnt, size_t nargs, size_t& idx)
needle = prefix + digits[i] + suffix;
size_t pos = insnt.find(needle);
if(std::string::npos != pos)
sprintf(buf, "%u", idx++);
sprintf(buf, "%" PRIuSIZE, idx++);
while(std::string::npos != (pos = insnt.find(needle)))
insnt.replace(pos, needle.size(), buf);
}
@@ -444,7 +445,7 @@ static void remap_inargs(std::string& insnt, size_t nargs, size_t& idx)
needle = prefix + digits[i] + suffix;
size_t pos = insnt.find(needle);
if(std::string::npos != pos)
sprintf(buf, "%u", idx++);
sprintf(buf, "%" PRIuSIZE, idx++);
while(std::string::npos != (pos = insnt.find(needle)))
insnt.replace(pos, needle.size(), buf);
}