Skip to content

Commit

Permalink
Merge c2a5901 into 9f2041e
Browse files Browse the repository at this point in the history
  • Loading branch information
richardstartin committed Dec 6, 2019
2 parents 9f2041e + c2a5901 commit c98f7c6
Show file tree
Hide file tree
Showing 99 changed files with 5,331 additions and 5,529 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public interface AppendableStorage<T> {
* @param key the key to append
* @param container the data to append
*/
void append(short key, T container);
void append(char key, T container);

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.roaringbitmap;

import static org.roaringbitmap.Util.toIntUnsigned;


public final class ArrayBatchIterator implements ContainerBatchIterator {

Expand All @@ -14,9 +14,9 @@ public ArrayBatchIterator(ArrayContainer array) {
@Override
public int next(int key, int[] buffer) {
int consumed = 0;
short[] data = array.content;
char[] data = array.content;
while (consumed < buffer.length && index < array.getCardinality()) {
buffer[consumed++] = key + toIntUnsigned(data[index++]);
buffer[consumed++] = key + (data[index++]);
}
return consumed;
}
Expand Down

0 comments on commit c98f7c6

Please sign in to comment.