[svn:parrot] r41217 - trunk/src

darbelo at svn.parrot.org darbelo at svn.parrot.org
Fri Sep 11 18:45:39 UTC 2009


Author: darbelo
Date: Fri Sep 11 18:45:39 2009
New Revision: 41217
URL: https://trac.parrot.org/parrot/changeset/41217

Log:
Move a PARROT_ASSERT to prevent a "mixed declarations and code" warning.

Modified:
   trunk/src/pmc_freeze.c

Modified: trunk/src/pmc_freeze.c
==============================================================================
--- trunk/src/pmc_freeze.c	Fri Sep 11 18:14:31 2009	(r41216)
+++ trunk/src/pmc_freeze.c	Fri Sep 11 18:45:39 2009	(r41217)
@@ -332,10 +332,11 @@
 push_opcode_integer(PARROT_INTERP, ARGIN(IMAGE_IO *io), INTVAL v)
 {
     ASSERT_ARGS(push_opcode_integer)
-    PARROT_ASSERT(sizeof (opcode_t) == sizeof (INTVAL));
     UINTVAL size = sizeof (opcode_t);
     STRING   *op = Parrot_str_new_init(interp, (char *)&v, size,
         Parrot_fixed_8_encoding_ptr, Parrot_binary_charset_ptr, 0);
+
+    PARROT_ASSERT(sizeof (opcode_t) == sizeof (INTVAL));
     io->image = Parrot_str_append(interp, io->image, op);
 }
 


More information about the parrot-commits mailing list