From 63d7e433f104dd13d015df3a048697fad6d43a55 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 15 May 2008 14:19:02 +0000 Subject: Added a lot of testcode... and fixed a lot of minor error (-Wall -Werror) --- server/src/tostring.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src/tostring.cc') 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; } -- cgit v1.2.3