[svn:parrot] r43010 - trunk/src

jkeenan at svn.parrot.org jkeenan at svn.parrot.org
Sat Dec 12 03:51:41 UTC 2009


Author: jkeenan
Date: Sat Dec 12 03:51:38 2009
New Revision: 43010
URL: https://trac.parrot.org/parrot/changeset/43010

Log:
Replace three instances of '->strstart'.  Cf.:
http://trac.parrot.org/parrot/ticket/1370.

Modified:
   trunk/src/oo.c

Modified: trunk/src/oo.c
==============================================================================
--- trunk/src/oo.c	Sat Dec 12 03:34:29 2009	(r43009)
+++ trunk/src/oo.c	Sat Dec 12 03:51:38 2009	(r43010)
@@ -955,7 +955,7 @@
 
     mc   = interp->caches;
     type = _class->vtable->base_type;
-    bits = (((UINTVAL) method_name->strstart) >> 2) & TBL_SIZE_MASK;
+    bits = (((UINTVAL) Buffer_bufstart(method_name)) >> 2) & TBL_SIZE_MASK;
 
     if (type >= mc->mc_size) {
         if (mc->idx) {
@@ -976,7 +976,7 @@
 
     e   = mc->idx[type][bits];
 
-    while (e && e->strstart != method_name->strstart) {
+    while (e && e->strstart != Buffer_bufstart(method_name)) {
         e   = e->next;
     }
 
@@ -988,7 +988,7 @@
 
         e->pmc      = Parrot_find_method_direct(interp, _class, method_name);
         e->next     = NULL;
-        e->strstart = method_name->strstart;
+        e->strstart = Buffer_bufstart(method_name);
     }
 
     return e->pmc;


More information about the parrot-commits mailing list