HPCC-12644 Fix problems in 32bit folding int64 return types

intresult was signed, causing the '+' to decrement the value, resulting
in a value 2^32 smaller than it should have been.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #6697 from ghalliday/issue12644

HPCC-12644 Fix problems in 32bit folding int64 return types

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>