]> granicus.if.org Git - re2c/commitdiff
Use something that Mingw understands instead of UINTMAX_MAX from <stdint.h>.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 5 Mar 2019 17:40:42 +0000 (17:40 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 5 Mar 2019 17:55:37 +0000 (17:55 +0000)
re2c/src/parse/scanner.cc

index 23dc65d822698232b83563e6f82c6dcd6d6f6a3e..5be4fda1784fb5d172475aead6a9f6e119d9acc3 100644 (file)
@@ -1,3 +1,4 @@
+#include <limits.h>
 #include <string.h>
 
 #include "src/parse/scanner.h"
@@ -6,7 +7,7 @@
 
 namespace re2c {
 
-const char *const Scanner::ENDPOS = (const char*) UINTMAX_MAX;
+const char *const Scanner::ENDPOS = (const char*) ULLONG_MAX;
 
 Scanner::~Scanner()
 {