Skip to content

Commit 6bc7e4e

Browse files
committed
Do not parse time amount as unsigned long
1 parent f6ad36e commit 6bc7e4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloud-core/src/main/java/org/incendo/cloud/parser/standard/DurationParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public final class DurationParser<C> implements ArgumentParser<C, Duration>, Blo
9898

9999
final long timeValue;
100100
try {
101-
timeValue = Long.parseUnsignedLong(input.substring(rangeStart, cursor));
101+
timeValue = Long.parseLong(input.substring(rangeStart, cursor));
102102
} catch (final NumberFormatException ex) {
103103
return ArgumentParseResult.failure(new DurationParseException(ex, input, commandContext));
104104
}

0 commit comments

Comments
 (0)