From 87b62002dd1160caef39495b49781e0ac8e07fbf Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 15 Oct 2017 21:25:03 -0700 Subject: [PATCH] fixup! ircd::json: Better bool related conversions etc. --- ircd/lexical.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ircd/lexical.cc b/ircd/lexical.cc index e2bf95261..9e2b3b173 100644 --- a/ircd/lexical.cc +++ b/ircd/lexical.cc @@ -415,7 +415,9 @@ ircd::lex_cast(long double i, template<> bool ircd::lex_cast(const string_view &s) { - return _lex_cast(s); + return s == "true"? true: + s == "false"? false: + _lex_cast(s); } template<> int8_t