[caching/hint_array] resize the destination before unpacking a hint

This commit is contained in:
Joe Thornber 2013-10-10 11:26:13 +01:00
parent 3d8eab2974
commit 8cfffe309c

View File

@ -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];
}