Mercurial > projects > ldc
diff gen/asmstmt.cpp @ 794:661384d6a936
Fix warnings on x86-64. By fvbommel.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 28 Nov 2008 21:24:08 +0100 |
parents | f04dde6e882c |
children | 545f54041d91 |
line wrap: on
line diff
--- a/gen/asmstmt.cpp Thu Nov 27 18:31:09 2008 +0100 +++ b/gen/asmstmt.cpp Fri Nov 28 21:24:08 2008 +0100 @@ -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 @@ 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 @@ 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); }