[caching/hint_array] resize the destination before unpacking a hint
This commit is contained in:
parent
3d8eab2974
commit
8cfffe309c
@ -17,6 +17,7 @@ namespace {
|
||||
|
||||
// FIXME: slow copying for now
|
||||
static void unpack(disk_type const &disk, value_type &value) {
|
||||
value.resize(WIDTH);
|
||||
for (unsigned byte = 0; byte < WIDTH; byte++)
|
||||
value.at(byte) = disk[byte];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user