From df326ec97c11acb86e822e3e51340ba2aeeefbbd Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 1 Feb 2011 02:20:29 +0100 Subject: [PATCH] fixed bool parsing --- lib/binaryParser.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/binaryParser.js b/lib/binaryParser.js index ed2de933..2a7bcd60 100644 --- a/lib/binaryParser.js +++ b/lib/binaryParser.js @@ -83,8 +83,7 @@ var parseFloat = function(data, precisionBits, exponentBits) { }; p.parseBool = function(value) { - console.log(JSON.stringify(value)); - return (parseBits(value, 16) == 0); + return (parseBits(value, 8) == 1); } p.parseInt16 = function(value) {