Skip to content

Commit

Permalink
Replaced unmappable character compiler error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacarey committed Nov 16, 2015
1 parent 8efaa0f commit 253e250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/htsjdk/samtools/TextTagCodec.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public String encode(final String tagName, Object value) {
value = getArrayType(value, false) + "," + encodeArrayValue(value);
} else if (tagType == 'i') {
final long longVal = ((Number) value).longValue();
// as the spec says: [2^31, 2^32)
// as the spec says: [-2^31, 2^32)
if (longVal < Integer.MIN_VALUE || longVal > BinaryCodec.MAX_UINT) {
throw new IllegalArgumentException("Value for tag " + tagName + " cannot be stored in either a signed or unsigned 32-bit integer: " + longVal);
}
Expand Down

0 comments on commit 253e250

Please sign in to comment.