rt/emul/mini/src/main/resources/org/apidesign/vm4brwsr/emul/lang/java_lang_Number.js
branchFasterSieve
changeset 1950 71e5cd5b29bc
parent 1800 65cab8539582
     1.1 --- a/rt/emul/mini/src/main/resources/org/apidesign/vm4brwsr/emul/lang/java_lang_Number.js	Fri Feb 27 19:28:07 2015 +0100
     1.2 +++ b/rt/emul/mini/src/main/resources/org/apidesign/vm4brwsr/emul/lang/java_lang_Number.js	Sun Jan 24 14:31:36 2016 +0100
     1.3 @@ -1,5 +1,4 @@
     1.4  // empty line needed here
     1.5 -
     1.6  (function(numberPrototype) {
     1.7      numberPrototype.add32 = function(x) {
     1.8          return (this + x) | 0;
     1.9 @@ -498,12 +497,11 @@
    1.10          return (this / x) | 0;
    1.11      }
    1.12  
    1.13 -    numberPrototype.mod32 = function(x) {
    1.14 +    myNum.mod32 = function(a, x) {
    1.15          if (x === 0) {
    1.16              __handleDivByZero();
    1.17          }
    1.18 -
    1.19 -        return (this % x);
    1.20 +        return a % x;
    1.21      }
    1.22  
    1.23      numberPrototype.div64 = function(x) {