[svn:parrot] r38233 - trunk/src/pmc
jonathan at svn.parrot.org
jonathan at svn.parrot.org
Mon Apr 20 17:16:41 UTC 2009
Author: jonathan
Date: Mon Apr 20 17:16:40 2009
New Revision: 38233
URL: https://trac.parrot.org/parrot/changeset/38233
Log:
[core] Revert r38227 because it's wrong wrong wrong. The address of an array should not change when you push an element onto the array, and the addresses of two empty arrays should not be the same!
Modified:
trunk/src/pmc/fixedpmcarray.pmc
Modified: trunk/src/pmc/fixedpmcarray.pmc
==============================================================================
--- trunk/src/pmc/fixedpmcarray.pmc Mon Apr 20 16:27:32 2009 (r38232)
+++ trunk/src/pmc/fixedpmcarray.pmc Mon Apr 20 17:16:40 2009 (r38233)
@@ -47,7 +47,7 @@
const INTVAL n = SELF.elements();
if (n > 1)
- Parrot_quicksort(interp, (void **)SELF.get_pointer(), n, cmp_func);
+ Parrot_quicksort(interp, (void **)PMC_array(SELF), n, cmp_func);
}
/*
@@ -144,20 +144,6 @@
/*
-=item C<void *get_pointer()>
-
-Get pointer to stored data. Used in sort method.
-
-=cut
-
-*/
-
- VTABLE void * get_pointer() {
- return PMC_array(SELF);
- }
-
-/*
-
=item C<INTVAL get_integer()>
Returns the number of elements in the array.
More information about the parrot-commits
mailing list