repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 5846b833ddc4a9dfa6b0b8886d3c8ceeaea6ab67:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 5846b833ddc4a9dfa6b0b8886d3c8ceeaea6ab67
Author: Marc Lehmann 
Date:   Fri Jul 29 08:35:09 2011 +0000

    *** empty log message ***

diff --git a/src/iom_perl.xs b/src/iom_perl.xs
index fd1bc5ba7f53974bc2b16cef83bbc7bd632238e1..
index ..be7a10f6b7227845788be4483688c30f48e0041a 100644
--- a/src/iom_perl.xs
+++ b/src/iom_perl.xs
@@ -19,8 +19,8 @@ BOOT:
 #   undef iom_const
     };

-    for (civ = iom_const_iv + sizeof (iom_const_iv) / sizeof (iom_const_iv [0]); civ-- > iom_const_iv; )
-      newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
+    for (civ = iom_const_iv + sizeof (iom_const_iv) / sizeof (iom_const_iv [0]); civ > iom_const_iv; civ--)
+      newCONSTSUB (stash, (char *)civ[-1].name, newSViv (civ[-1].iv));

     /* slightly dirty to put the same scalar into all those arrays, but */
     /* we do not expect users to modify them anyways */
diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs
index 0e3e7ccabe9e1ad5d6e5e0d727de0255eaaf4ad0..
index ..68d9b6122ee90c12fe87a2e3ed56242c93c6519a 100644
--- a/src/rxvtperl.xs
+++ b/src/rxvtperl.xs
@@ -801,8 +801,8 @@ BOOT:
 #   endif
   };

-  for (civ = const_iv + ecb_array_length (const_iv); civ-- > const_iv; )
-    newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
+  for (civ = const_iv + ecb_array_length (const_iv); civ > const_iv; civ--)
+    newCONSTSUB (stash, (char *)civ[-1].name, newSViv (civ[-1].iv));
 }

 void

-----END OF PAGE-----