We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 554a3b0 + dc8121e commit 314a14aCopy full SHA for 314a14a
src/core/operations/ToDecimal.mjs
@@ -45,11 +45,12 @@ class ToDecimal extends Operation {
45
* @returns {string}
46
*/
47
run(input, args) {
48
- input = new Uint8Array(input);
49
const delim = Utils.charRep(args[0]),
50
signed = args[1];
51
if (signed) {
52
- input = input.map(v => v > 0x7F ? v - 0xFF - 1 : v);
+ input = new Int8Array(input);
+ } else {
53
+ input = new Uint8Array(input);
54
}
55
return input.join(delim);
56
0 commit comments