From d9142d2eed5fd0b03ebc65020f766e635efdef12 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 8 Apr 2020 00:07:58 +0200 Subject: Remove -Wshadow warnings --- src/mp-serializer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mp-serializer.c') diff --git a/src/mp-serializer.c b/src/mp-serializer.c index 896c843..4debd83 100644 --- a/src/mp-serializer.c +++ b/src/mp-serializer.c @@ -159,7 +159,7 @@ mp_to_string_real(MpSerializer *serializer, const MPNumber *x, int base, gboolea /* Append base suffix if not in default base */ if (base != serializer->priv->base) { - const gchar *digits[] = {"₀", "₁", "₂", "₃", "₄", "₅", "₆", "₇", "₈", "₉"}; + const gchar *base_digits[] = {"₀", "₁", "₂", "₃", "₄", "₅", "₆", "₇", "₈", "₉"}; int multiplier = 1; int b = base; @@ -169,7 +169,7 @@ mp_to_string_real(MpSerializer *serializer, const MPNumber *x, int base, gboolea int d; multiplier /= 10; d = b / multiplier; - g_string_append(string, digits[d]); + g_string_append(string, base_digits[d]); b -= d * multiplier; } } -- cgit v1.2.1