Skip to content

Commit 2b33ef5

Browse files
committed
Silencing a warning.
1 parent 59ed1cb commit 2b33ef5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/nbit_array.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ class UInt12Array {
5555
}
5656

5757
void bulkSet(uint16_t* source, size_t length) {
58-
size_t volume_needed = (length / 2)*3 + (length % 1) * 2;
59-
assert(volume_needed <= byteCount);
58+
assert((length / 2)*3 + (length % 1) * 2 <= byteCount);
6059
size_t i = 0, j = 0;
6160
for(; i + 1 < length;) {
6261
uint32_t a = source[i++];

0 commit comments

Comments
 (0)