1
## This is used by integer computations, to upgrade the answer and return a
2
## Num if we overflow. We may want to return something like a BigInt in the
3
## future, but we don't have that yet and this gives something closer to the
4
## correct semantics than not upgrading an Int at all.
7
.sub '!upgrade_to_num_if_needed'
9
if test > 2147483647.0 goto upgrade
10
if test < -2147483648.0 goto upgrade