You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[ Bug 19214 ]] Increase useful range of IntSize and IntSSize
This patch ensures that IntSize and IntSSize values are truncated
to the maximum exact integer value double will allow - +/- 2^53
rather than the range of an Int32.
private foreign handler printf_int(in pFormat as ZStringNative, in pValue as LCInt) returns nothing binds to "printf"
57
+
private foreign handler printf_uint(in pFormat as ZStringNative, in pValue as LCUInt) returns nothing binds to "printf"
58
+
private foreign handler printf_intsize(in pFormat as ZStringNative, in pValue as IntSize) returns nothing binds to "printf"
59
+
private foreign handler printf_uintsize(in pFormat as ZStringNative, in pValue as UIntSize) returns nothing binds to "printf"
60
+
61
+
foreign handler MCHandlerTryToInvokeWithList(in Handler as any, inout Arguments as optional List, out Result as optional any) returns optional any binds to "<builtin>"
62
+
63
+
private handler __Is64Bit() returns nothing
64
+
variable tSize as UIntSize
65
+
put 4294967296.0 into tSize
66
+
unsafe
67
+
printf_uintsize("", tSize)
68
+
end unsafe
69
+
end handler
70
+
71
+
private handler Is64Bit()
72
+
variable tResult as optional any
73
+
variable tArguments as optional List
74
+
variable tError as optional any
75
+
put [] into tArguments
76
+
unsafe
77
+
put MCHandlerTryToInvokeWithList(__Is64Bit, tArguments, tResult) into tError
0 commit comments