From 4d3fad38e96b552b70f57ab632ce8afab2abb1f1 Mon Sep 17 00:00:00 2001 From: Mark DePristo Date: Mon, 13 Aug 2012 14:20:26 -0400 Subject: [PATCH] Increase allowable range for BCF2 by -1 on low-end --- .../broadinstitute/sting/utils/codecs/bcf2/BCF2Type.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public/java/src/org/broadinstitute/sting/utils/codecs/bcf2/BCF2Type.java b/public/java/src/org/broadinstitute/sting/utils/codecs/bcf2/BCF2Type.java index 6fd698ff6..8a9ba87ac 100644 --- a/public/java/src/org/broadinstitute/sting/utils/codecs/bcf2/BCF2Type.java +++ b/public/java/src/org/broadinstitute/sting/utils/codecs/bcf2/BCF2Type.java @@ -48,8 +48,7 @@ public enum BCF2Type { } }, - // todo -- confirm range - INT8 (1, 1, 0xFFFFFF80, -127, 127) { + INT8 (1, 1, 0xFFFFFF80, -128, 127) { @Override public int read(final InputStream in) throws IOException { return BCF2Utils.readByte(in); @@ -61,7 +60,7 @@ public enum BCF2Type { } }, - INT16(2, 2, 0xFFFF8000, -32767, 32767) { + INT16(2, 2, 0xFFFF8000, -32768, 32767) { @Override public int read(final InputStream in) throws IOException { final int b2 = BCF2Utils.readByte(in) & 0xFF; @@ -77,7 +76,7 @@ public enum BCF2Type { } }, - INT32(3, 4, 0x80000000, -2147483647, 2147483647) { + INT32(3, 4, 0x80000000, -2147483648, 2147483647) { @Override public int read(final InputStream in) throws IOException { final int b4 = BCF2Utils.readByte(in) & 0xFF;