Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix byte overflow #4

Open
wants to merge 2 commits into
base: master
from
Open
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Addresses #3.

  • Loading branch information
smoelius committed Apr 13, 2020
commit 12b2881bbcc911a7e236bae1b1d54900cee8d93f
@@ -319,10 +319,10 @@ static void copy(byte[] src, int srcPos, byte[] dst, int dstPos) {
}
} else if (x == 13) {
// Replace an ascii digit with another digit.
List<Byte> digits = new ArrayList<Byte>();
List<Integer> digits = new ArrayList<Integer>();
for (int k=0; k<res.length; k++) {
if (res[k] >= 48 && res[k] <= 57) {
digits.add((byte)k);
digits.add(k);
}
}
if (digits.size() == 0) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.