[svn:parrot] r48282 - trunk/src/pmc
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Tue Aug 3 09:03:51 UTC 2010
Author: NotFound
Date: Tue Aug 3 09:03:51 2010
New Revision: 48282
URL: https://trac.parrot.org/parrot/changeset/48282
Log:
add some const and change a UINTVAL to INTVAL to fix c++ and avoid warnings
Modified:
trunk/src/pmc/imageio.pmc
Modified: trunk/src/pmc/imageio.pmc
==============================================================================
--- trunk/src/pmc/imageio.pmc Tue Aug 3 06:43:58 2010 (r48281)
+++ trunk/src/pmc/imageio.pmc Tue Aug 3 09:03:51 2010 (r48282)
@@ -247,7 +247,7 @@
ASSERT_ARGS(visit_todo_list_thaw)
const UINTVAL n = VTABLE_shift_integer(interp, info);
- const UINTVAL id = PackID_get_PMCID(n);
+ const INTVAL id = PackID_get_PMCID(n);
const int packid_flags = PackID_get_FLAGS(n);
PMC *pmc = PMCNULL;
@@ -603,7 +603,7 @@
VTABLE INTVAL shift_integer()
{
- opcode_t *pos = GET_VISIT_CURSOR(SELF);
+ const opcode_t *pos = GET_VISIT_CURSOR(SELF);
INTVAL i = PF_fetch_integer(PARROT_IMAGEIO(SELF)->pf, &pos);
SET_VISIT_CURSOR(SELF, (char *)pos);
BYTECODE_SHIFT_OK(SELF);
@@ -622,7 +622,7 @@
*/
VTABLE FLOATVAL shift_float() {
- opcode_t *pos = GET_VISIT_CURSOR(SELF);
+ const opcode_t *pos = GET_VISIT_CURSOR(SELF);
FLOATVAL f = PF_fetch_number(PARROT_IMAGEIO(SELF)->pf, &pos);
SET_VISIT_CURSOR(SELF, (char *)pos);
BYTECODE_SHIFT_OK(SELF);
@@ -660,7 +660,7 @@
}
{
- opcode_t *pos = GET_VISIT_CURSOR(SELF);
+ const opcode_t *pos = GET_VISIT_CURSOR(SELF);
STRING *s = PF_fetch_string(INTERP, PARROT_IMAGEIO(SELF)->pf, &pos);
SET_VISIT_CURSOR(SELF, (char *)pos);
BYTECODE_SHIFT_OK(SELF);
More information about the parrot-commits
mailing list