Commit 8e823bcb authored by goussardg's avatar goussardg Committed by Trevor Norris
Browse files

buffer: return uint if MSB is 1 in readUInt32



Fix issue where a signed integer is returned.

Example:

var b = new Buffer(4);
b.writeUInt32BE(0xffffffff);
b.readUInt32BE(0) == -1

Signed-off-by: default avatarTrevor Norris <trev.norris@gmail.com>
parent 4c36f3e7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment