Debuggers need to handle negative values a bit better

This commit is contained in:
Jeff 2017-03-08 16:48:25 -08:00 committed by Jeff Parsons
commit 70cd954974
7 changed files with 204 additions and 161 deletions

View file

@ -1357,7 +1357,7 @@ class Int36 {
}
var value = Math.trunc(Math.abs(num)) % Math.pow(2, bits);
if (DEBUG && num !== value) {
console.log("Int36.validate(" + Int36.octal(num) + " out of range, truncated to " + Int36.octal(value) + ")");
console.log("Int36.validate(" + Int36.octal(num) + "): out of range, truncated to " + Int36.octal(value));
}
return value;
}