Skip to content

Commit a6e2e9f

Browse files
committed
Support signed size_t sized objects in custom printf
1 parent bbf1c60 commit a6e2e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderdoc/serialise/utf8printf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ void PrintInteger(bool typeUnsigned, uint64_t argu, int base, uint64_t numbits,
137137
case HalfHalf: argi = (int64_t)*typepun.c; break;
138138
case Half: argi = (int64_t)*typepun.s; break;
139139
case LongLong: argi = (int64_t)*typepun.i64; break;
140+
case SizeT: argi = (int64_t)*typepun.i64; break;
140141
}
141142

142143
bool negative = false;
@@ -1068,7 +1069,6 @@ void formatargument(char type, void *rawarg, FormatterParams formatter, char *&o
10681069
case SizeT:
10691070
numbits = 8 * sizeof(size_t);
10701071
argu = (uint64_t) * (size_t *)rawarg;
1071-
typeUnsigned = true;
10721072
break;
10731073
}
10741074
uppercaseDigits = (type < 'a');

0 commit comments

Comments
 (0)