shithub: duke3d

Download patch

ref: fa17f876521561f90a01ff5e99d410c9f29100ab
parent: 306d134c7b57361388c22b02c3a210cd55e0a9d7
parent: fa0372ac7a4eef4d10bd692b2f0ed73d632111ce
author: Fabien <[email protected]>
date: Tue Sep 1 19:17:57 EDT 2015

Merge pull request #34 from darealshinji/cleanup-2

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");