From a2aa36ea6ad0cc5b5fb746202883ef0bc18585cb Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 19 Jan 2012 14:39:48 -0700 Subject: strtoll not 64 bit on 64 bit? --- src/variable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/variable.cpp b/src/variable.cpp index 4cbf97d..88ac1bc 100644 --- a/src/variable.cpp +++ b/src/variable.cpp @@ -191,7 +191,7 @@ Variable Variable::to( Type e ) const case tNull: break; case tBool: break; case tInt: - return Variable( strtoll(sValue->getStr(), NULL, 10 ) ); + return Variable( (int64_t)strtoll(sValue->getStr(), NULL, 10 ) ); case tFloat: return Variable( strtod(sValue->getStr(), NULL ) ); case tString: break; -- cgit v1.2.3