From a6e2e9fea5998c0bd49ed77dd3cb8eb07acd466b Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 28 Aug 2017 18:32:40 +0100 Subject: [PATCH] Support signed size_t sized objects in custom printf --- renderdoc/serialise/utf8printf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/serialise/utf8printf.cpp b/renderdoc/serialise/utf8printf.cpp index 88e351220..a94250681 100644 --- a/renderdoc/serialise/utf8printf.cpp +++ b/renderdoc/serialise/utf8printf.cpp @@ -137,6 +137,7 @@ void PrintInteger(bool typeUnsigned, uint64_t argu, int base, uint64_t numbits, case HalfHalf: argi = (int64_t)*typepun.c; break; case Half: argi = (int64_t)*typepun.s; break; case LongLong: argi = (int64_t)*typepun.i64; break; + case SizeT: argi = (int64_t)*typepun.i64; break; } bool negative = false; @@ -1068,7 +1069,6 @@ void formatargument(char type, void *rawarg, FormatterParams formatter, char *&o case SizeT: numbits = 8 * sizeof(size_t); argu = (uint64_t) * (size_t *)rawarg; - typeUnsigned = true; break; } uppercaseDigits = (type < 'a');