[svn:parrot] r40101 - trunk/src

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Jul 15 13:19:17 UTC 2009


Author: bacek
Date: Wed Jul 15 13:19:16 2009
New Revision: 40101
URL: https://trac.parrot.org/parrot/changeset/40101

Log:
[cage] Fix compiler warning in hash.c

Modified:
   trunk/src/hash.c

Modified: trunk/src/hash.c
==============================================================================
--- trunk/src/hash.c	Wed Jul 15 13:15:25 2009	(r40100)
+++ trunk/src/hash.c	Wed Jul 15 13:19:16 2009	(r40101)
@@ -1307,11 +1307,15 @@
         PMC_IS_NULL(hash->container)
         || !(PObj_constant_TEST(hash->container))
         || (
-            !(hash->key_type == Hash_key_type_STRING)
-            || PObj_constant_TEST((PObj *)key))
-        && (
-            !((hash->entry_type == enum_type_PMC) || (hash->entry_type == enum_type_STRING))
-            || PObj_constant_TEST((PObj *)value))
+            (
+                !(hash->key_type == Hash_key_type_STRING)
+                || PObj_constant_TEST((PObj *)key)
+            )
+            && (
+                !((hash->entry_type == enum_type_PMC) || (hash->entry_type == enum_type_STRING))
+                || PObj_constant_TEST((PObj *)value)
+            )
+        )
         || !"Use non-constant key or value in constant hash");
 
     while (bucket) {


More information about the parrot-commits mailing list