Skip to content

Commit

Permalink
Minor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Haraldsen committed Jan 28, 2024
1 parent 7c07945 commit ff1d220
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ public static int parsePositiveInt(final String strNum, int startInclusive, int
{
ErrorUtil.raiseUnexpectedCharacter(strNum, i);
}
result = (result << 1) + (result << 3);
result -= c - ZERO;
result = result * 10 + (c - ZERO);
}
return -result;
return result;
}

public static void toString(final int value, final char[] buf, final int offset, final int charLength)
Expand Down

0 comments on commit ff1d220

Please sign in to comment.