summaryrefslogtreecommitdiffstats
path: root/src/consts.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/consts.ts')
-rw-r--r--src/consts.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/consts.ts b/src/consts.ts
index 401de7e..dd1d5d6 100644
--- a/src/consts.ts
+++ b/src/consts.ts
@@ -1,4 +1,6 @@
export let _zi = -2147483648;
export function zi() {
+ if (_zi + 1 > 2147483647)
+ _zi = -2147483648;
return (_zi++).toString();
}