[svn:parrot] r46381 - trunk/src/pmc
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Fri May 7 06:16:57 UTC 2010
Author: plobsing
Date: Fri May 7 06:16:56 2010
New Revision: 46381
URL: https://trac.parrot.org/parrot/changeset/46381
Log:
stringbuilder strings have invalid hashes
Modified:
trunk/src/pmc/stringbuilder.pmc
Modified: trunk/src/pmc/stringbuilder.pmc
==============================================================================
--- trunk/src/pmc/stringbuilder.pmc Fri May 7 03:19:11 2010 (r46380)
+++ trunk/src/pmc/stringbuilder.pmc Fri May 7 06:16:56 2010 (r46381)
@@ -101,9 +101,11 @@
*/
VTABLE STRING *get_string() {
- STRING *buffer;
+ STRING *buffer, *retv;
GET_ATTR_buffer(INTERP, SELF, buffer);
- return Parrot_str_clone(INTERP, buffer);
+ retv = Parrot_str_clone(INTERP, buffer);
+ retv->hashval = 0; /* hash is invalid */
+ return retv;
}
/*
More information about the parrot-commits
mailing list