diff --git a/src/lib/format-string.cpp b/src/lib/format-string.cpp index 82a9d7ea0..bea186abb 100644 --- a/src/lib/format-string.cpp +++ b/src/lib/format-string.cpp @@ -186,10 +186,10 @@ namespace util { template void _Fmt::format (const char, Implementation&); template void _Fmt::format (const uchar, Implementation&); - template void _Fmt::format (const int, Implementation&); - template void _Fmt::format (const uint, Implementation&); - template void _Fmt::format (const short, Implementation&); - template void _Fmt::format (const ushort, Implementation&); + template void _Fmt::format (const int16_t, Implementation&); + template void _Fmt::format (const uint16_t,Implementation&); + template void _Fmt::format (const int32_t, Implementation&); + template void _Fmt::format (const uint32_t,Implementation&); template void _Fmt::format (const int64_t, Implementation&); template void _Fmt::format (const uint64_t,Implementation&); template void _Fmt::format (const float, Implementation&); @@ -197,6 +197,10 @@ namespace util { template void _Fmt::format (const string, Implementation&); template void _Fmt::format (const void *, Implementation&); template void _Fmt::format (const char *, Implementation&); +#ifndef __x86_64__ + template void _Fmt::format (const long, Implementation&); + template void _Fmt::format (const ulong, Implementation&); +#endif diff --git a/src/lib/format-string.hpp b/src/lib/format-string.hpp index 1f4c4033e..fa884b174 100644 --- a/src/lib/format-string.hpp +++ b/src/lib/format-string.hpp @@ -247,14 +247,18 @@ namespace util { template<> struct _allow_call { enum{ value = true }; }; template<> struct _allow_call { enum{ value = true }; }; template<> struct _allow_call { enum{ value = true }; }; - template<> struct _allow_call { enum{ value = true }; }; - template<> struct _allow_call { enum{ value = true }; }; - template<> struct _allow_call { enum{ value = true }; }; - template<> struct _allow_call { enum{ value = true }; }; + template<> struct _allow_call { enum{ value = true }; }; + template<> struct _allow_call{ enum{ value = true }; }; + template<> struct _allow_call { enum{ value = true }; }; + template<> struct _allow_call{ enum{ value = true }; }; template<> struct _allow_call { enum{ value = true }; }; template<> struct _allow_call{ enum{ value = true }; }; template<> struct _allow_call { enum{ value = true }; }; template<> struct _allow_call { enum{ value = true }; }; +#ifndef __x86_64__ + template<> struct _allow_call { enum{ value = true }; }; + template<> struct _allow_call { enum{ value = true }; }; +#endif template struct _shall_format_directly diff --git a/tests/40core.tests b/tests/40core.tests index 73487887a..063202d21 100644 --- a/tests/40core.tests +++ b/tests/40core.tests @@ -310,7 +310,7 @@ END TEST "formatting by string template" FormatString_test <