From c6ec5ca734a1e6fdc3e6b3899480fa0766665a4c Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Fri, 27 Nov 2015 21:43:51 +0100 Subject: [PATCH] Fix MathLib::characterLiteralToLongNumber for LP64 again. --- lib/mathlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mathlib.cpp b/lib/mathlib.cpp index 03a46867f..6fa4f9656 100644 --- a/lib/mathlib.cpp +++ b/lib/mathlib.cpp @@ -335,7 +335,7 @@ MathLib::bigint MathLib::characterLiteralToLongNumber(const std::string& str) // or containing a character or escape sequence that does not map to a single-byte execution character, // is implementation-defined. // clang and gcc seem to use the following encoding: 'AB' as (('A' << 8) | 'B') - unsigned long retval(str.front()); + unsigned int retval(str.front()); for (std::string::const_iterator it=str1.begin(); it!=str1.end(); ++it) { retval = retval<<8 | *it; }