[svn:parrot] r40944 - trunk/src/pmc
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Thu Sep 3 04:34:18 UTC 2009
Author: NotFound
Date: Thu Sep 3 04:34:16 2009
New Revision: 40944
URL: https://trac.parrot.org/parrot/changeset/40944
Log:
[cage] c++ fixes
Modified:
trunk/src/pmc/fixedbooleanarray.pmc
trunk/src/pmc/resizablebooleanarray.pmc
Modified: trunk/src/pmc/fixedbooleanarray.pmc
==============================================================================
--- trunk/src/pmc/fixedbooleanarray.pmc Thu Sep 3 03:46:08 2009 (r40943)
+++ trunk/src/pmc/fixedbooleanarray.pmc Thu Sep 3 04:34:16 2009 (r40944)
@@ -554,7 +554,7 @@
const INTVAL size = VTABLE_shift_integer(INTERP, io);
STRING * const s = VTABLE_shift_string(INTERP, io);
- bit_array = Parrot_str_to_cstring(INTERP, s);
+ bit_array = (unsigned char *)Parrot_str_to_cstring(INTERP, s);
threshold = Parrot_str_byte_length(interp, s) * BITS_PER_CHAR;
SET_ATTR_size(INTERP, SELF, size);
Modified: trunk/src/pmc/resizablebooleanarray.pmc
==============================================================================
--- trunk/src/pmc/resizablebooleanarray.pmc Thu Sep 3 03:46:08 2009 (r40943)
+++ trunk/src/pmc/resizablebooleanarray.pmc Thu Sep 3 04:34:16 2009 (r40944)
@@ -453,10 +453,9 @@
const UINTVAL tail_pos = VTABLE_shift_integer(INTERP, io);
STRING * const s = VTABLE_shift_string(INTERP, io);
- bit_array = Parrot_str_to_cstring(INTERP, s);
+ bit_array = (unsigned char*)Parrot_str_to_cstring(INTERP, s);
PMC_data(SELF) =
mem_allocate_zeroed_typed(Parrot_ResizableBooleanArray_attributes);
-
SET_ATTR_size(INTERP, SELF, tail_pos);
SET_ATTR_resize_threshold(INTERP, SELF, head_pos);
SET_ATTR_bit_array(INTERP, SELF, bit_array);
More information about the parrot-commits
mailing list