We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ed1cb commit 2b33ef5Copy full SHA for 2b33ef5
src/nbit_array.h
@@ -55,8 +55,7 @@ class UInt12Array {
55
}
56
57
void bulkSet(uint16_t* source, size_t length) {
58
- size_t volume_needed = (length / 2)*3 + (length % 1) * 2;
59
- assert(volume_needed <= byteCount);
+ assert((length / 2)*3 + (length % 1) * 2 <= byteCount);
60
size_t i = 0, j = 0;
61
for(; i + 1 < length;) {
62
uint32_t a = source[i++];
0 commit comments