You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/02/14 18:20:59 UTC
[GitHub] [commons-compress] garydgregory commented on a change in pull request #247: Use Math.min and Math.max calculations.
garydgregory commented on a change in pull request #247:
URL: https://github.com/apache/commons-compress/pull/247#discussion_r806121231
##########
File path: src/main/java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java
##########
@@ -308,11 +308,8 @@ public boolean encodes(final long value) {
}
} else if (z < 0) {
// Need to use integer overflow here to represent negatives.
- if (cardinality < 4294967296L) {
- z += cardinality;
- } else {
- z += 4294967296L; // this value is equal to (1 << 32).
- }
+ // this value is equal to (1 << 32).
Review comment:
I think you'd want to use jshell here, not python...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org