summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index f7bb44c..9afcedb 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -3569,7 +3569,7 @@ Tcl_SetBignumObj(
while (numBytes-- > 0) {
value = (value << CHAR_BIT) | *bytes++;
}
- if (value > (((~(Tcl_WideUInt)0) >> 1) + bignumValue->sign)) {
+ if (value > ((UWIDE_MAX >> 1) + bignumValue->sign)) {
goto tooLargeForWide;
}
if (bignumValue->sign) {