diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-20 18:43:53 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-20 18:43:53 -0700 |
commit | 3679d5bb76a0b22eab86d8c2c41ec5b94eadd250 (patch) | |
tree | 0cfe25cdd379178969fe73fc3c7216bfbd7953f4 /src/runtime.js | |
parent | 45bcf3ad360c950765db789bdd54d111d044ffc5 (diff) |
print hex numbers alongside decimal in gl and library debug
Diffstat (limited to 'src/runtime.js')
-rw-r--r-- | src/runtime.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.js b/src/runtime.js index fe6481f5..1e36ece6 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -361,7 +361,7 @@ var Runtime = { return '<' + arg + '|' + Runtime.printObjectMap[arg] + '>'; } if (typeof arg == 'number') { - return '0x' + arg.toString(16); + if (arg > 0) return '0x' + arg.toString(16) + ' (' + arg + ')'; } return arg; } |