summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjsonpp/json.ll3
1 files changed, 1 insertions, 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 <boost/lexical_cast.hpp>
#pragma GCC diagnostic ignored "-Wsign-compare"
%}
@@ -50,7 +49,7 @@ escape "\\"
}
<ARRAY_ITEM,VALUE>{number} {
- PushNumber(boost::lexical_cast<double>(YYText()));
+ PushNumber(std::strtod(YYText(), NULL));
yy_pop_state();
}