[svn:parrot] r45254 - trunk/src/pmc

mikehh at svn.parrot.org mikehh at svn.parrot.org
Sun Mar 28 15:18:02 UTC 2010


Author: mikehh
Date: Sun Mar 28 15:18:02 2010
New Revision: 45254
URL: https://trac.parrot.org/parrot/changeset/45254

Log:
fix codetest failure - assert macro must be at top of function

Modified:
   trunk/src/pmc/complex.pmc

Modified: trunk/src/pmc/complex.pmc
==============================================================================
--- trunk/src/pmc/complex.pmc	Sun Mar 28 15:14:31 2010	(r45253)
+++ trunk/src/pmc/complex.pmc	Sun Mar 28 15:18:02 2010	(r45254)
@@ -231,10 +231,10 @@
 
 static void
 complex_check_divide_zero(PARROT_INTERP, ARGIN(PMC *value)) {
-    /* Throw an exception if we are dividing by zero. Check both the real part
-     * and the imaginary part.*/
     ASSERT_ARGS(complex_check_divide_zero)
 
+    /* Throw an exception if we are dividing by zero. Check both the real part
+     * and the imaginary part.*/
 
     if (FLOAT_IS_ZERO(VTABLE_get_number_keyed_int(interp, value, 0))
             && FLOAT_IS_ZERO(VTABLE_get_number_keyed_int(interp, value, 1)))


More information about the parrot-commits mailing list