Merge remote-tracking branch 'origin/GT-3570_adamopolous_scalar_search_issue'

This commit is contained in:
ghidorahrex 2020-03-03 15:43:50 -05:00
commit 534fd5253a
3 changed files with 92 additions and 79 deletions

View file

@ -99,7 +99,10 @@ public class Scalar implements Comparable<Scalar> {
* Get the value as unsigned.
*/
public long getUnsignedValue() {
return value;
if (value == 0) { // just in case the bitLength is 0
return 0;
}
return (value & BITMASKS[bitLength]);
}
/**