Linux process record and replay support.
[deliverable/binutils-gdb.git] / gold / stringpool.h
index 1b80842a9831212068f675cabf17d0be097f4020..6fe2066eaa45231d0d6c6d54382a253bd1770b95 100644 (file)
@@ -220,8 +220,8 @@ class Stringpool_template
   section_offset_type
   get_offset_from_key(Key k) const
   {
-    gold_assert(k < this->key_to_offset_.size());
-    return this->key_to_offset_[k];
+    gold_assert(k <= this->key_to_offset_.size());
+    return this->key_to_offset_[k - 1];
   }
 
   // Get the size of the string table.  This returns the number of
This page took 0.022676 seconds and 4 git commands to generate.