From: Mikko Rasa Date: Wed, 21 Feb 2018 17:30:40 +0000 (+0200) Subject: Use automatic base detection when parsing integers X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d93f320a4853afa6d1c25d9b546600807cfee37d;p=libs%2Fdatafile.git Use automatic base detection when parsing integers --- diff --git a/source/statement.cpp b/source/statement.cpp index 9dfb544..125c1d5 100644 --- a/source/statement.cpp +++ b/source/statement.cpp @@ -40,7 +40,7 @@ string Statement::get_signature() const Statement &Statement::append_from_token(const Token &token) { if(token.type==Token::INTEGER) - return append(lexical_cast(token.str)); + return append(lexical_cast(token.str, Fmt().autobase())); else if(token.type==Token::FLOAT) return append(lexical_cast(token.str)); else if(token.type==Token::STRING)