[gnome-commander/ConvertWarningsToErrors] Fix gcc warning about variable shadowing
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ConvertWarningsToErrors] Fix gcc warning about variable shadowing
- Date: Tue, 18 Apr 2017 20:14:19 +0000 (UTC)
commit 4294ab3233be682cafc729da829ea10df9b2902d
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]