From 0cf0999fba82b94d8a68d6446db57ce045c74e14 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 1 May 2018 20:07:12 +0100 Subject: Lexical cast is overkill, we're already pattern matched --- libjsonpp/json.ll | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libjsonpp/json.ll b/libjsonpp/json.ll index d7be30e..8fce090 100644 --- a/libjsonpp/json.ll +++ b/libjsonpp/json.ll @@ -9,7 +9,6 @@ %{ #include "jsonFlexLexer.h" -#include #pragma GCC diagnostic ignored "-Wsign-compare" %} @@ -50,7 +49,7 @@ escape "\\" } {number} { - PushNumber(boost::lexical_cast(YYText())); + PushNumber(std::strtod(YYText(), NULL)); yy_pop_state(); } -- cgit v1.2.3