use stoll() to allow reading bigger numbers before encoding them as LEB128 integers v_0 v0.18
authorFrantišek Kučera <franta-hg@frantovo.cz>
Mon, 29 Nov 2021 19:31:58 +0100
branchv_0
changeset 54 d9c68ac8929e
parent 53 653e3b154191
child 55 9d88e8f0a869
use stoll() to allow reading bigger numbers before encoding them as LEB128 integers
src/types/IntegerDataTypeWriter.h
--- a/src/types/IntegerDataTypeWriter.h	Sat Nov 27 23:15:16 2021 +0100
+++ b/src/types/IntegerDataTypeWriter.h	Mon Nov 29 19:31:58 2021 +0100
@@ -59,7 +59,7 @@
 
 	integer_t toValue(const string_t &stringValue) override {
 		// throws „terminate called after throwing an instance of 'std::invalid_argument'“ SIGABRT, core dumped on invalid number
-		return stol(stringValue);
+		return stoll(stringValue);
 	}
 
 };