yiluncui commented on a change in pull request #2138: URL: https://github.com/apache/lucene-solr/pull/2138#discussion_r545650772
########## File path: lucene/sandbox/src/java/org/apache/lucene/sandbox/search/MultiNormsLeafSimScorer.java ########## @@ -128,7 +128,7 @@ public boolean advanceExact(int target) throws IOException { for (int i = 0; i < normsArr.length; i++) { boolean found = normsArr[i].advanceExact(target); assert found; - normValue += weightArr[i] * LENGTH_TABLE[(byte) normsArr[i].longValue()]; + normValue += weightArr[i] * LENGTH_TABLE[(byte) normsArr[i].longValue() & 0xff]; Review comment: I've updated the change using Byte.toUnsignedInt ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org