From c428779e83ff798b289cdda46906daccf698b42b Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 16 Jun 2015 12:01:11 +0200 Subject: [PATCH] shape : make primitives parsers static + fix numeric parser to handle mapnik::value_integer (64-bit) --- plugins/input/shape/dbfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/input/shape/dbfile.cpp b/plugins/input/shape/dbfile.cpp index f042d7a4b..e9412ec9e 100644 --- a/plugins/input/shape/dbfile.cpp +++ b/plugins/input/shape/dbfile.cpp @@ -191,7 +191,7 @@ void dbf_file::add_attribute(int col, mapnik::transcoder const& tr, mapnik::feat const char *itr = record_+fields_[col].offset_; const char *end = itr + fields_[col].length_; ascii::space_type space; - qi::double_type double_; + static qi::double_type double_; if (qi::phrase_parse(itr,end,double_,space,val)) { f.put(name,val); @@ -203,8 +203,8 @@ void dbf_file::add_attribute(int col, mapnik::transcoder const& tr, mapnik::feat const char *itr = record_+fields_[col].offset_; const char *end = itr + fields_[col].length_; ascii::space_type space; - qi::int_type int_; - if (qi::phrase_parse(itr,end,int_,space,val)) + static qi::int_parser numeric_parser; + if (qi::phrase_parse(itr, end, numeric_parser, space, val)) { f.put(name,val); }