summaryrefslogtreecommitdiff
path: root/src/compose.hpp
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-15 10:09:45 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-15 10:09:45 +0100
commitec3d1705240f2ce86fb2fbaf0a2fbba5b9fffd2d (patch)
tree7f0ce10dd667f5868bda5c051ae7415a503cb40a /src/compose.hpp
parent846bb291aa34af6e2c533d2d1402e86361552433 (diff)
Hack.
Diffstat (limited to 'src/compose.hpp')
-rw-r--r--src/compose.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compose.hpp b/src/compose.hpp
index 4ce60e33..9d954d6c 100644
--- a/src/compose.hpp
+++ b/src/compose.hpp
@@ -145,18 +145,18 @@ namespace StringPrivate
}
template <>
- inline void write(std::string& s, const int& obj)
+ inline void write(std::string& s, const int32& obj)
{
char buffer[64];
- snprintf(buffer, 64, "%d", obj);
+ snprintf(buffer, 64, "%" PRId32, obj);
s += buffer;
}
template <>
- inline void write(std::string& s, const unsigned int& obj)
+ inline void write(std::string& s, const uint32& obj)
{
char buffer[64];
- snprintf(buffer, 64, "%ud", obj);
+ snprintf(buffer, 64, "%d" % PRIu32, obj);
s += buffer;
}