Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ public static AbstractLiteralIV createInlineIV(final BigInteger value) {
*/
@SuppressWarnings("rawtypes")
public static AbstractLiteralIV createInlineIV(final long value) {
if (value < 0L) {
return new XSDUnsignedLongIV(value + Long.MIN_VALUE);
}
if (value < 256L) {
return new XSDUnsignedByteIV((byte) (value + Byte.MIN_VALUE));
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
Copyright (C) SYSTAP, LLC DBA Blazegraph 2006-2016. All rights reserved.
Copyright (C) SYSTAP, LLC DBA Blazegraph 2006-2016. All rights reserved.

Contact:
SYSTAP, LLC DBA Blazegraph
Expand Down Expand Up @@ -246,6 +246,7 @@ public void testUnsignedInteger() throws Exception {
UNSIGNED_INT_NAMESPACE + Short.MAX_VALUE, true,//
UNSIGNED_INT_NAMESPACE + Integer.MAX_VALUE, true,//
UNSIGNED_INT_NAMESPACE + Long.MAX_VALUE, true,//
UNSIGNED_INT_NAMESPACE + "12148449524915690527", true,//
UNSIGNED_INT_NAMESPACE + "19223372036854775807", true,//
UNSIGNED_INT_NAMESPACE + "foo", false);
}
Expand Down