diff options
| author | HarmoGlace <23212967+HarmoGlace@users.noreply.github.com> | 2023-04-13 21:08:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-13 21:08:54 +0200 |
| commit | 29b36d487609b6a291c3847703f36928082cc8a2 (patch) | |
| tree | 1e684d67757a6b2885e1027d1e74a60912db0b48 /tests/typ | |
| parent | 6d596da72b16e486a4ca9c69a416bf21b88d30f0 (diff) | |
Fix `pow` overflow (#784)
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/compute/calc.typ | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ index 905520e6..c9e23542 100644 --- a/tests/typ/compute/calc.typ +++ b/tests/typ/compute/calc.typ @@ -91,6 +91,10 @@ #calc.pow(2, 10000000000000000) --- +// Error: 10-25 the result is too large +#calc.pow(2, 2147483647) + +--- // Error: 14-36 exponent may not be infinite, subnormal, or NaN #calc.pow(2, calc.pow(2.0, 10000.0)) |
