Fix bug in map implementation
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 2 May 2011 23:54:17 +0000 (19:54 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 2 May 2011 23:54:17 +0000 (19:54 -0400)
src/hb-private.hh

index b91595d..dc47000 100644 (file)
@@ -379,7 +379,7 @@ struct hb_map_t
     if (!item) return;
 
     item->finish ();
-    items[items.len - 1] = *item;
+    *item = items[items.len - 1];
     items.pop ();
   }