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 10777e5 commit 5b6e5fcCopy full SHA for 5b6e5fc
lib/decode.js
@@ -89,7 +89,7 @@ decode.integer = function() {
89
90
decode.position += end + 1 - decode.position
91
92
- return +number
+ return parseFloat( number ) << 0
93
94
}
95
lib/encode.js
@@ -42,7 +42,7 @@ encode.bytes = function( data ) {
42
43
44
encode.number = function( data ) {
45
- return new Buffer('i' + data + 'e')
+ return new Buffer( 'i' + ( data << 0 ) + 'e' )
46
47
48
encode.dict = function( data ) {
0 commit comments