shithub: duke3d

Download patch

ref: fa0372ac7a4eef4d10bd692b2f0ed73d632111ce
parent: 04e45448d447b1def481f0ed9e44a492543cb075
author: Marshall Banana <[email protected]>
date: Sun May 3 06:15:35 EDT 2015

Cleanup: -Wformat

--- a/Game/src/global.c
+++ b/Game/src/global.c
@@ -826,10 +826,10 @@
 {
 	switch (radix) {
 		case 10:
-			sprintf(string, "%ld", value);
+			sprintf(string, "%d", value);
 			break;
 		case 16:
-			sprintf(string, "%lx", value);
+			sprintf(string, "%x", value);
 			break;
 		default:
 			STUBBED("unknown radix");
@@ -843,10 +843,10 @@
 {
 	switch (radix) {
 		case 10:
-			sprintf(string, "%lu", value);
+			sprintf(string, "%u", value);
 			break;
 		case 16:
-			sprintf(string, "%lux", value);
+			sprintf(string, "%ux", value);
 			break;
 		default:
 			STUBBED("unknown radix");