[svn:parrot] r49177 - trunk/include/parrot

luben at svn.parrot.org luben at svn.parrot.org
Mon Sep 20 15:57:25 UTC 2010


Author: luben
Date: Mon Sep 20 15:57:25 2010
New Revision: 49177
URL: https://trac.parrot.org/parrot/changeset/49177

Log:
Amend fix for TT#1794 to include also cstrings and ptrs

Modified:
   trunk/include/parrot/hash.h

Modified: trunk/include/parrot/hash.h
==============================================================================
--- trunk/include/parrot/hash.h	Mon Sep 20 15:38:45 2010	(r49176)
+++ trunk/include/parrot/hash.h	Mon Sep 20 15:57:25 2010	(r49177)
@@ -102,7 +102,9 @@
 
 #define parrot_hash_iterate(_hash, _code)                                   \
 {                                                                           \
-    if ((_hash)->key_type == Hash_key_type_int)                             \
+    if ((_hash)->key_type == Hash_key_type_int                              \
+    ||  (_hash)->key_type == Hash_key_type_cstring                          \
+    ||  (_hash)->key_type == Hash_key_type_ptr)                             \
         parrot_hash_iterate_indexed(_hash, _code)                           \
     else                                                                    \
         parrot_hash_iterate_linear(_hash, _code)                            \


More information about the parrot-commits mailing list