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

petdance at svn.parrot.org petdance at svn.parrot.org
Fri Nov 5 03:14:09 UTC 2010


Author: petdance
Date: Fri Nov  5 03:14:09 2010
New Revision: 49781
URL: https://trac.parrot.org/parrot/changeset/49781

Log:
localizing a loop var

Modified:
   trunk/include/parrot/hash.h

Modified: trunk/include/parrot/hash.h
==============================================================================
--- trunk/include/parrot/hash.h	Fri Nov  5 01:38:48 2010	(r49780)
+++ trunk/include/parrot/hash.h	Fri Nov  5 03:14:09 2010	(r49781)
@@ -88,8 +88,8 @@
 
 #define parrot_hash_iterate_indexed(_hash, _code)                           \
 {                                                                           \
-    UINTVAL _loc;                                                           \
-    if ((_hash)->entries){                                                  \
+    if ((_hash)->entries) {                                                 \
+        UINTVAL _loc;                                                       \
         for (_loc = 0; _loc <= (_hash)->mask; ++_loc) {                     \
             HashBucket *_bucket = (_hash)->index[_loc];                     \
             while (_bucket) {                                               \


More information about the parrot-commits mailing list