IniFile: Fix writing 64-bit hex values.

This commit is contained in:
Henrik Rydgård 2023-05-08 10:47:03 +02:00
parent 9623f515e7
commit ce632ec079

View File

@ -5,6 +5,8 @@
#include <cstdlib>
#include <cstdio>
#include <inttypes.h>
#ifndef _MSC_VER
#include <strings.h>
#endif
@ -192,7 +194,7 @@ void Section::Set(const char* key, uint32_t newValue) {
}
void Section::Set(const char* key, uint64_t newValue) {
Set(key, StringFromFormat("0x%016lx", newValue).c_str());
Set(key, StringFromFormat("0x%016" PRIx64, newValue).c_str());
}
void Section::Set(const char* key, float newValue) {