Declarations must come first, or some compilers aren't happy.
Rafael Garcia-Suarez [Sun, 20 Nov 2005 12:10:15 +0000 (12:10 +0000)]
(spotted by Jarkko)

p4raw-id: //depot/perl@26179

ext/B/B.xs

index 6b3d64c..04422b3 100644 (file)
@@ -1322,8 +1322,8 @@ precomp(mg)
         B::MAGIC        mg
     CODE:
         if (mg->mg_type == 'r') {
-            RETVAL = Nullsv;
             REGEXP* rx = (REGEXP*)mg->mg_obj;
+            RETVAL = Nullsv;
             if( rx )
                 RETVAL = newSVpvn( rx->precomp, rx->prelen );
         }