[svn:parrot] r39474 - trunk/compilers/imcc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Tue Jun 9 19:58:40 UTC 2009


Author: chromatic
Date: Tue Jun  9 19:58:39 2009
New Revision: 39474
URL: https://trac.parrot.org/parrot/changeset/39474

Log:
[IMCC] Added braces to avoid a compiler warning about an ambiguous else.

Modified:
   trunk/compilers/imcc/pcc.c

Modified: trunk/compilers/imcc/pcc.c
==============================================================================
--- trunk/compilers/imcc/pcc.c	Tue Jun  9 15:25:32 2009	(r39473)
+++ trunk/compilers/imcc/pcc.c	Tue Jun  9 19:58:39 2009	(r39474)
@@ -815,13 +815,14 @@
         if (arg->set != 'P') {
             if (!(arg->type == VTIDENTIFIER
             ||    arg->type == VTPASM
-            ||    arg->type == VTREG))
+            ||    arg->type == VTREG)) {
                 if (arg->type & VT_ENCODED) {
                     meth = mk_const(interp, arg->name, 'U');
                 }
                 else {
                     meth = mk_const(interp, arg->name, 'S');
                 }
+            }
         }
     }
 


More information about the parrot-commits mailing list