summaryrefslogtreecommitdiffstats
path: root/Source/cmExprParserHelper.h
diff options
context:
space:
mode:
authorDaniel Franke <franke@edf-online.de>2018-05-18 19:59:46 (GMT)
committerBrad King <brad.king@kitware.com>2018-06-22 13:00:34 (GMT)
commit5b0f73a15a7b49461123a969bbebceff4284df9c (patch)
treefb9b32ce694a969018ffb0edf604227ea6a7a630 /Source/cmExprParserHelper.h
parent963b8d9f6c1c4bcce2a82ade137a82b17ef75780 (diff)
downloadCMake-5b0f73a15a7b49461123a969bbebceff4284df9c.zip
CMake-5b0f73a15a7b49461123a969bbebceff4284df9c.tar.gz
CMake-5b0f73a15a7b49461123a969bbebceff4284df9c.tar.bz2
math: Use 64-bit integer type for computation
Diffstat (limited to 'Source/cmExprParserHelper.h')
-rw-r--r--Source/cmExprParserHelper.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmExprParserHelper.h b/Source/cmExprParserHelper.h
index dcdaca9..c3cb53b 100644
--- a/Source/cmExprParserHelper.h
+++ b/Source/cmExprParserHelper.h
@@ -5,6 +5,8 @@
#include "cmConfigure.h" // IWYU pragma: keep
+#include "cm_kwiml.h"
+
#include <string>
#include <vector>
@@ -13,7 +15,7 @@ class cmExprParserHelper
public:
struct ParserType
{
- int Number;
+ KWIML_INT_int64_t Number;
};
cmExprParserHelper();
@@ -24,9 +26,9 @@ public:
int LexInput(char* buf, int maxlen);
void Error(const char* str);
- void SetResult(int value);
+ void SetResult(KWIML_INT_int64_t value);
- int GetResult() { return this->Result; }
+ KWIML_INT_int64_t GetResult() { return this->Result; }
const char* GetError() { return this->ErrorString.c_str(); }
@@ -41,7 +43,7 @@ private:
void CleanupParser();
- int Result;
+ KWIML_INT_int64_t Result;
const char* FileName;
long FileLine;
std::string ErrorString;