mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 22:09:33 +02:00
pas2js: fixed rtl.js
git-svn-id: trunk@41788 -
This commit is contained in:
parent
744c331330
commit
c1224f0705
2
utils/pas2js/dist/rtl.js
vendored
2
utils/pas2js/dist/rtl.js
vendored
@ -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 * Mat.pow(2,b);
|
||||
var r = a * Math.pow(2,b);
|
||||
if (r <= rtl.hiInt) return r;
|
||||
return r % rtl.hiInt;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user