[gnome-commander] Fix gcc warning about variable shadowing



commit 736524b5d75713bb6f8bf8116f626467d7180030
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Tue Apr 18 22:10:43 2017 +0200

    Fix gcc warning about variable shadowing

 src/intviewer/viewer-utils.cc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/intviewer/viewer-utils.cc b/src/intviewer/viewer-utils.cc
index 81de117..521c12c 100644
--- a/src/intviewer/viewer-utils.cc
+++ b/src/intviewer/viewer-utils.cc
@@ -145,14 +145,14 @@ guint8 *text2hex (const gchar *text, /*out*/ guint &buflen)
     len = 0;
     high_nib = TRUE;
     value = 0;
-    for (gint idx=0; text[idx]; ++idx)
-        if (g_ascii_isxdigit (text[idx]))
+    for (gint idx2=0; text[idx2]; ++idx2)
+        if (g_ascii_isxdigit (text[idx2]))
         {
             if (high_nib)
-                value = g_ascii_xdigit_value(text[idx]) * 16;
+                value = g_ascii_xdigit_value(text[idx2]) * 16;
             else
             {
-                value += g_ascii_xdigit_value(text[idx]);
+                value += g_ascii_xdigit_value(text[idx2]);
                 result[len] = value;
                 len++;
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]