Change from_argb_hex() (which wasn't being used) to from_rgba_hex().
[libsub.git] / src / locale_convert.cc
index 8f3073c4608e940ed38008e1c5bac95dbc443503..83970f10e1527490bfe14035d56a61eabe95cc2f 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include "locale_convert.h"
+#include <cstdio>
 
 using std::string;
 
@@ -52,6 +53,19 @@ sub::locale_convert (unsigned long int x, int, bool)
        return buffer;
 }
 
+template<>
+string
+sub::locale_convert (unsigned long long x, int, bool)
+{
+       char buffer[64];
+#ifdef LIBSUB_WINDOWS
+       __mingw_snprintf (buffer, sizeof(buffer), "%lld", x);
+#else
+       snprintf (buffer, sizeof(buffer), "%lld", x);
+#endif
+       return buffer;
+}
+
 template<>
 string
 sub::locale_convert (string x, int, bool)