Skip to content

Commit

Permalink
[GH #879] Fix imageiothaw -Werror=declaration-after-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Dec 11, 2012
1 parent 109d816 commit 04ccb77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pmc/imageiothaw.pmc
Expand Up @@ -237,8 +237,8 @@ Retrieve an integer as the next item from the image.
PackFile * const pf = PARROT_IMAGEIOTHAW(SELF)->pf;
const unsigned char *stream = (const unsigned char *)PARROT_IMAGEIOTHAW(SELF)->curs;
const INTVAL i = pf->fetch_iv(stream);
UNUSED(INTERP);
DECL_CONST_CAST;
UNUSED(INTERP);
PARROT_IMAGEIOTHAW(SELF)->curs = (opcode_t *)PARROT_const_cast(unsigned char *,
stream + pf->header->wordsize);
BYTECODE_SHIFT_OK(INTERP, SELF);
Expand All @@ -260,8 +260,8 @@ Retrieve a float as the next item from the image.
PackFile * const pf = PARROT_IMAGEIOTHAW(SELF)->pf;
const opcode_t *curs = PARROT_IMAGEIOTHAW(SELF)->curs;
const FLOATVAL f = PF_fetch_number(pf, &curs);
UNUSED(INTERP);
DECL_CONST_CAST;
UNUSED(INTERP);
PARROT_IMAGEIOTHAW(SELF)->curs = PARROT_const_cast(opcode_t *, curs);
BYTECODE_SHIFT_OK(INTERP, SELF);
return f;
Expand Down

0 comments on commit 04ccb77

Please sign in to comment.