Fix NB.decodeUInt16 to correctly handle the high byte
commit6edc860666af932c6d755de5c76b1484b6321bf0
authorShawn O. Pearce <spearce@spearce.org>
Mon, 18 Aug 2008 16:35:31 +0000 (18 09:35 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 19 Aug 2008 20:33:56 +0000 (19 22:33 +0200)
tree756559e64ca7c9c7bcd47abcafc7cfa874c8f62e
parent56d12564ae036b58fd1b1709157b94aca8387690
Fix NB.decodeUInt16 to correctly handle the high byte

Our decodeUInt16 method was buggy and always cleared the high byte
of the pair.  This meant we always lost the upper 8 bits when we
read in a 16 bit unsigned integer, possibly causing us to misread
the data associated with that pair.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/util/NB.java