[svn:parrot] r49187 - trunk/src/pmc
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Mon Sep 20 21:25:17 UTC 2010
Author: plobsing
Date: Mon Sep 20 21:25:17 2010
New Revision: 49187
URL: https://trac.parrot.org/parrot/changeset/49187
Log:
add useless casts. C++ is like that.
Modified:
trunk/src/pmc/imageiothaw.pmc
Modified: trunk/src/pmc/imageiothaw.pmc
==============================================================================
--- trunk/src/pmc/imageiothaw.pmc Mon Sep 20 21:19:22 2010 (r49186)
+++ trunk/src/pmc/imageiothaw.pmc Mon Sep 20 21:25:17 2010 (r49187)
@@ -133,7 +133,7 @@
/* we're done reading the image */
PARROT_ASSERT(image->strstart + Parrot_str_byte_length(interp, image) ==
- PARROT_IMAGEIOTHAW(SELF)->curs);
+ (char *)PARROT_IMAGEIOTHAW(SELF)->curs);
Parrot_visit_loop_thawfinish(INTERP, SELF);
@@ -235,10 +235,10 @@
*/
VTABLE FLOATVAL shift_float() {
- const PackFile *pf = PARROT_IMAGEIOTHAW(SELF)->pf;
- opcode_t *curs = PARROT_IMAGEIOTHAW(SELF)->curs;
+ PackFile *pf = PARROT_IMAGEIOTHAW(SELF)->pf;
+ const opcode_t *curs = PARROT_IMAGEIOTHAW(SELF)->curs;
FLOATVAL f = PF_fetch_number(pf, &curs);
- PARROT_IMAGEIOTHAW(SELF)->curs = curs;
+ PARROT_IMAGEIOTHAW(SELF)->curs = (opcode_t *)curs;
BYTECODE_SHIFT_OK(INTERP, SELF);
return f;
}
@@ -277,9 +277,9 @@
{
PackFile *pf = PARROT_IMAGEIOTHAW(SELF)->pf;
- opcode_t *curs = PARROT_IMAGEIOTHAW(SELF)->curs;
+ const opcode_t *curs = PARROT_IMAGEIOTHAW(SELF)->curs;
STRING *s = PF_fetch_string(INTERP, pf, &curs);
- PARROT_IMAGEIOTHAW(SELF)->curs = curs;
+ PARROT_IMAGEIOTHAW(SELF)->curs = (opcode_t *)curs;
BYTECODE_SHIFT_OK(INTERP, SELF);
return s;
}
More information about the parrot-commits
mailing list