[svn:parrot] r47830 - branches/gsoc_nfg/src/string/encoding

darbelo at svn.parrot.org darbelo at svn.parrot.org
Fri Jun 25 07:29:01 UTC 2010


Author: darbelo
Date: Fri Jun 25 07:29:01 2010
New Revision: 47830
URL: https://trac.parrot.org/parrot/changeset/47830

Log:
Localize a variable.

Modified:
   branches/gsoc_nfg/src/string/encoding/nfg.c

Modified: branches/gsoc_nfg/src/string/encoding/nfg.c
==============================================================================
--- branches/gsoc_nfg/src/string/encoding/nfg.c	Fri Jun 25 07:06:13 2010	(r47829)
+++ branches/gsoc_nfg/src/string/encoding/nfg.c	Fri Jun 25 07:29:01 2010	(r47830)
@@ -532,11 +532,11 @@
         return;
     }
     else {
-        grapheme_table *table = (grapheme_table *) i->str->extra;
         int32_t  prev = s[pos - 1];
         grapheme g;
 
         if (prev < 0) {
+            grapheme_table *table = (grapheme_table *) i->str->extra;
             PARROT_ASSERT(table);
             g.len = table->graphemes[-1 - prev].len + 1;
             g.hash = table->graphemes[-1 - prev].hash;


More information about the parrot-commits mailing list