diff --git a/caching/hint_array.cc b/caching/hint_array.cc index cb7b2bf..315ed42 100644 --- a/caching/hint_array.cc +++ b/caching/hint_array.cc @@ -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]; }