Skip to content

Commit

Permalink
Hot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LvalueReference committed Feb 9, 2023
1 parent ac94f94 commit 34f86b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#include <sstream>
#include <array>

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<int64_t>(svc.data(), svc.data() + svc.size(), res);
std::from_chars(svc.data(), svc.data() + svc.size(), res);
} else{
res = json.get_int64();
}
Expand Down

0 comments on commit 34f86b6

Please sign in to comment.