Skip to content

Commit 253e250

Browse files
committed
Replaced unmappable character compiler error.
1 parent 8efaa0f commit 253e250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/htsjdk/samtools/TextTagCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public String encode(final String tagName, Object value) {
7373
value = getArrayType(value, false) + "," + encodeArrayValue(value);
7474
} else if (tagType == 'i') {
7575
final long longVal = ((Number) value).longValue();
76-
// as the spec says: [2^31, 2^32)
76+
// as the spec says: [-2^31, 2^32)
7777
if (longVal < Integer.MIN_VALUE || longVal > BinaryCodec.MAX_UINT) {
7878
throw new IllegalArgumentException("Value for tag " + tagName + " cannot be stored in either a signed or unsigned 32-bit integer: " + longVal);
7979
}

0 commit comments

Comments
 (0)