From 34f86b685e8c2cc67b255aef4ff1301970b571c1 Mon Sep 17 00:00:00 2001 From: Dian Lozinskyi Date: Thu, 9 Feb 2023 13:12:36 +0100 Subject: [PATCH] Hot fixes --- src/exception.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exception.cpp b/src/exception.cpp index 8ef2944..609afac 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -5,13 +5,13 @@ #include #include -inline int64_t code_to_int(auto json) noexcept{ +static int64_t code_to_int(auto json) noexcept{ int64_t res; if (json.is_string()){ std::string_view svc = json.get_string(); - std::from_chars(svc.data(), svc.data() + svc.size(), res); + std::from_chars(svc.data(), svc.data() + svc.size(), res); } else{ res = json.get_int64(); }