[svn:parrot] r47944 - branches/gsoc_nfg/src/packfile

darbelo at svn.parrot.org darbelo at svn.parrot.org
Wed Jun 30 23:51:08 UTC 2010


Author: darbelo
Date: Wed Jun 30 23:51:08 2010
New Revision: 47944
URL: https://trac.parrot.org/parrot/changeset/47944

Log:
Add missing '*'s on a few cursors.  They are different from the other cursors.

Modified:
   branches/gsoc_nfg/src/packfile/pf_items.c

Modified: branches/gsoc_nfg/src/packfile/pf_items.c
==============================================================================
--- branches/gsoc_nfg/src/packfile/pf_items.c	Wed Jun 30 23:50:55 2010	(r47943)
+++ branches/gsoc_nfg/src/packfile/pf_items.c	Wed Jun 30 23:51:08 2010	(r47944)
@@ -1250,15 +1250,13 @@
         INTVAL i;
         table = create_grapheme_table(interp, extra);
         for (i = 0; i < extra; i++) {
-            table->graphemes[i].len = *cursor++;
+            INTVAL len = table->graphemes[i].len = PF_fetch_opcode(pf, cursor);
             table->graphemes[i].hash = 0;
             table->graphemes[i].codepoints =
-                mem_gc_allocate_n_typed(interp, table->graphemes[i].len, UChar32);
+                mem_gc_allocate_n_typed(interp, len, UChar32);
 
-            memcpy(table->graphemes[i].codepoints, cursor,
-                   table->graphemes[i].len * sizeof (UChar32));
-            cursor += ((table->graphemes[i].len * sizeof (UChar32)) 
-                      / sizeof (opcode_t)) + 1;
+            memcpy(table->graphemes[i].codepoints, *cursor, len * sizeof (UChar32));
+            *cursor += (len * sizeof (UChar32)) / sizeof (opcode_t) + 1;
         } 
         table->used = extra;
 #else


More information about the parrot-commits mailing list