-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix String compressible API loop entry conditions
The loop entry conditions should be traversing the input array starting from the given offset for the given length number of characters. Previously passing a starting offset which is greater than the length would result in the API never entering the loop and always returning true, even though the input may have contained non-compressible characters. We also take this opportunity to rename `compressible` to a better name which represents what the API is doing, i.e. `canEncodeAsLatin1`. Signed-off-by: Filip Jeremic <fjeremic@ca.ibm.com>
- Loading branch information
Showing
3 changed files
with
62 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters