diff options
author | deva <deva> | 2008-05-15 14:19:02 +0000 |
---|---|---|
committer | deva <deva> | 2008-05-15 14:19:02 +0000 |
commit | 63d7e433f104dd13d015df3a048697fad6d43a55 (patch) | |
tree | 4dedec10891f4e9866ba5b3f9bfcd136cc0c7e16 /server/src/tostring.cc | |
parent | dd744c562f2f755a9fcd9ee5341c8c8702a9ee32 (diff) |
Added a lot of testcode... and fixed a lot of minor error (-Wall -Werror)
Diffstat (limited to 'server/src/tostring.cc')
-rw-r--r-- | server/src/tostring.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/tostring.cc b/server/src/tostring.cc index bde5498..3179e00 100644 --- a/server/src/tostring.cc +++ b/server/src/tostring.cc @@ -70,7 +70,7 @@ std::string toString(short unsigned int su) std::string toString(int li) { char buf[32]; - sprintf(buf, "%ld", li); + sprintf(buf, "%ld", (long int)li); std::string out = buf; return buf; } @@ -78,7 +78,7 @@ std::string toString(int li) std::string toString(unsigned int lu) { char buf[32]; - sprintf(buf, "%lu", lu); + sprintf(buf, "%lu", (long unsigned int)lu); std::string out = buf; return buf; } |