Explorar o código

HPCC-23689 Support stored unsigned ints >= 2^31 in hthor/thor

This was only an issue with values >= 2^31 that were provided externally,
not default values.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday %!s(int64=5) %!d(string=hai) anos
pai
achega
e8a1030685
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      common/workunit/workunit.cpp

+ 6 - 1
common/workunit/workunit.cpp

@@ -11224,7 +11224,12 @@ __int64 CLocalWUResult::getResultInt() const
     if (s.length())
         s.read(result);
     else
-        result = p->getPropInt64("xmlValue");
+    {
+        // NOTE - we use this rather than getPropInt64 since it handles uint64 values up to MAX_UINT better (for our purposes)
+        const char *val = p->queryProp("xmlValue");
+        if (val)
+            result = rtlStrToInt8(strlen(val), val);
+    }
     return result;
 }