project_files/frontlib/logging.c
changeset 7177 bf6cf4dd847a
parent 7162 fe76d24a25d7
--- a/project_files/frontlib/logging.c	Thu Jun 07 02:45:18 2012 +0200
+++ b/project_files/frontlib/logging.c	Fri Jun 08 19:52:24 2012 +0200
@@ -7,7 +7,7 @@
 
 char* flib_format_ip(uint32_t numip) {
 	static char ip[16];
-	snprintf(ip, 16, "%u.%u.%u.%u", numip>>24, (numip>>16)&0xff, (numip>>8)&0xff, numip&0xff);
+	snprintf(ip, 16, "%u.%u.%u.%u", (unsigned)(numip>>24), (unsigned)((numip>>16)&0xff), (unsigned)((numip>>8)&0xff), (unsigned)(numip&0xff));
 	return ip;
 }