From 068adfadbd269cf0ef95c95174e9f058f830cfdc Mon Sep 17 00:00:00 2001 From: riccardom Date: Tue, 23 Dec 2008 23:02:46 +0000 Subject: [PATCH] u32 needs l lenght modifier. --- desmume/src/utils/guid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/utils/guid.cpp b/desmume/src/utils/guid.cpp index 771814d53..925752c28 100644 --- a/desmume/src/utils/guid.cpp +++ b/desmume/src/utils/guid.cpp @@ -11,7 +11,7 @@ void Desmume_Guid::newGuid() std::string Desmume_Guid::toString() { char buf[37]; - sprintf(buf,"%08X-%04X-%04X-%04X-%02X%02X%02X%02X%02X%02X", + sprintf(buf,"%08lX-%04X-%04X-%04X-%02X%02X%02X%02X%02X%02X", de32lsb(data),de16lsb(data+4),de16lsb(data+6),de16lsb(data+8),data[10],data[11],data[12],data[13],data[14],data[15]); return std::string(buf); }