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.
1 parent c5915f3 commit 365b3a6Copy full SHA for 365b3a6
lib/decode.js
@@ -85,17 +85,17 @@ decode.list = function() {
85
decode.integer = function() {
86
87
var end = decode.find( 0x65 )
88
- var number = +decode.data.toString('ascii', decode.position+1, end )
+ var number = decode.data.toString('ascii', decode.position+1, end )
89
90
decode.position += end + 1 - decode.position
91
92
- return parseFloat( number ) << 0
+ return parseInt( number )
93
}
94
95
decode.bytes = function() {
96
97
var sep = decode.find( 0x3A )
98
- var length = +decode.data.toString('ascii', decode.position, sep )
+ var length = parseInt(decode.data.toString('ascii', decode.position, sep ), 10)
99
var end = ++sep + length
100
101
decode.position += end - decode.position
0 commit comments