From 819862ddcbcee095860552f9c896eb90ffcc06a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 20 Oct 2017 17:38:15 +0200 Subject: [PATCH] Fix compiler errors --- lib/mathlib.cpp | 2 ++ lib/mathlib.h | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/mathlib.cpp b/lib/mathlib.cpp index 53036a28c..21862000e 100644 --- a/lib/mathlib.cpp +++ b/lib/mathlib.cpp @@ -38,6 +38,8 @@ #define ISNAN(x) (std::isnan(x)) #endif +const int MathLib::bigint_bits = 64; + MathLib::value::value(const std::string &s) : intValue(0), doubleValue(0), isUnsigned(false) { diff --git a/lib/mathlib.h b/lib/mathlib.h index 434d9f223..a325613b9 100644 --- a/lib/mathlib.h +++ b/lib/mathlib.h @@ -68,6 +68,7 @@ public: typedef long long bigint; typedef unsigned long long biguint; + static const int bigint_bits; static bigint toLongNumber(const std::string & str); static biguint toULongNumber(const std::string & str);