summaryrefslogtreecommitdiff
path: root/source/DataFormatters/StringPrinter.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:50:09 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:50:09 +0000
commitf3fbd1c0586ff6ec7895991e6c28f61a503c36a8 (patch)
tree48d008fd3df8c0e73271a4b18474e0aac6dbfe33 /source/DataFormatters/StringPrinter.cpp
parent2fc5d2d1dfaf623ce4e24cd8590565902f8c557c (diff)
Notes
Diffstat (limited to 'source/DataFormatters/StringPrinter.cpp')
-rw-r--r--source/DataFormatters/StringPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/DataFormatters/StringPrinter.cpp b/source/DataFormatters/StringPrinter.cpp
index b114add50640..8cdbb53eaa85 100644
--- a/source/DataFormatters/StringPrinter.cpp
+++ b/source/DataFormatters/StringPrinter.cpp
@@ -207,7 +207,7 @@ GetPrintableImpl<StringPrinter::StringElementType::UTF8> (uint8_t* buffer, uint8
else
{
uint8_t* data = new uint8_t[11];
- sprintf((char*)data,"\\U%08x",codepoint);
+ sprintf((char *)data, "\\U%08x", (unsigned)codepoint);
retval = { data,10,[] (const uint8_t* c) {delete[] c;} };
break;
}