From 6b29fbf90df4377d79802747620540864a77c650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 30 Dec 2021 12:33:22 +0100 Subject: [PATCH] Add overload for unsigned long long so that x64 builds work --- test/string_test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/string_test.cpp b/test/string_test.cpp index 6fbd8f1..a5c3f08 100644 --- a/test/string_test.cpp +++ b/test/string_test.cpp @@ -109,6 +109,14 @@ struct string_literals { std::sprintf(buf, "%lu", number); } + static void sprintf_number(char *buf, long long number) + { + std::sprintf(buf, "%lli", number); + } + static void sprintf_number(char *buf, unsigned long long number) + { + std::sprintf(buf, "%llu", number); + } }; template<>