buffer: convert values to uint, not int
authorTrevor Norris <trev.norris@gmail.com>
Thu, 14 Nov 2013 23:40:56 +0000 (15:40 -0800)
committerTrevor Norris <trev.norris@gmail.com>
Fri, 15 Nov 2013 19:48:09 +0000 (11:48 -0800)
commitd6df1b91579e95283768935ec3f43eb34e2dc818
tree5d287359294945e0435f72966fc2ff17ed3e5786
parente5346932bcbc523489c9418b82fde31cb666ee99
buffer: convert values to uint, not int

In many cases values expected to be unsigned were converted to a signed
integer.

Also include some small code cleanup.
lib/buffer.js