From 348b71685dac83974829a442be4d20ab33a7bb55 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 27 Sep 2023 13:51:37 +0200 Subject: [PATCH] js: fix object id generator --- core/src/main/resources/org/teavm/backend/javascript/runtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/resources/org/teavm/backend/javascript/runtime.js b/core/src/main/resources/org/teavm/backend/javascript/runtime.js index 71bd1ebef..8d0ebaa44 100644 --- a/core/src/main/resources/org/teavm/backend/javascript/runtime.js +++ b/core/src/main/resources/org/teavm/backend/javascript/runtime.js @@ -18,7 +18,7 @@ var $rt_seed = 2463534242; function $rt_nextId() { var x = $rt_seed; x ^= x << 13; - x ^= x >> 17; + x ^= x >>> 17; x ^= x << 5; $rt_seed = x; return x;