Commit 01c05f5e authored by Kenton Varda's avatar Kenton Varda

Merge pull request #145 from dwrensha/bit-struct-dead-code

remove obsolete list upgrade code for bit structs
parents dfdd49f8 255cf9b8
......@@ -1375,13 +1375,6 @@ struct WireHelpers {
dst += newStep / WORDS_PER_POINTER * (1 * ELEMENTS);
++src;
}
} else if (oldSize == ElementSize::BIT) {
word* dst = newPtr;
char* src = reinterpret_cast<char*>(oldPtr);
for (uint i = 0; i < elementCount / ELEMENTS; i++) {
*reinterpret_cast<char*>(dst) = (src[i/8] >> (i%8)) & 1;
dst += newStep * (1 * ELEMENTS);
}
} else {
word* dst = newPtr;
char* src = reinterpret_cast<char*>(oldPtr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment