From c3b515695bca8216b3aa4f54f3e6ea231e97df2e Mon Sep 17 00:00:00 2001 From: Mattias Gaertner Date: Mon, 18 Mar 2019 17:23:01 +0000 Subject: [PATCH] pas2js: using Math.pow instead of newer ** git-svn-id: trunk@41732 - --- utils/pas2js/dist/rtl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pas2js/dist/rtl.js b/utils/pas2js/dist/rtl.js index 056b847c85..f6c601eaf4 100644 --- a/utils/pas2js/dist/rtl.js +++ b/utils/pas2js/dist/rtl.js @@ -1103,7 +1103,7 @@ var rtl = { if (a<0) a += rtl.hiInt; if (b<=0) return a; if (b>54) return 0; - var r = a * (2**b); + var r = a * Mat.pow(2,b); if (r <= rtl.hiInt) return r; return r % rtl.hiInt; },