From 99e3a0673614697f0ceb07c7fa78d25d5590e20d Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 19 Oct 2013 14:22:55 +1100 Subject: Remove shadowing declarations to avoid warnings. --- lexers/LexRust.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lexers/LexRust.cxx b/lexers/LexRust.cxx index 0d9aa1e5e..cb6cd2f50 100644 --- a/lexers/LexRust.cxx +++ b/lexers/LexRust.cxx @@ -271,7 +271,7 @@ static void ScanNumber(Accessor& styler, int& pos) { if (c == 'u' || c == 'i') { pos++; c = styler.SafeGetCharAt(pos, '\0'); - int n = styler.SafeGetCharAt(pos + 1, '\0'); + n = styler.SafeGetCharAt(pos + 1, '\0'); if (c == '8') { pos++; } else if (c == '1' && n == '6') { @@ -290,7 +290,7 @@ static void ScanNumber(Accessor& styler, int& pos) { if (c == 'f') { pos++; c = styler.SafeGetCharAt(pos, '\0'); - int n = styler.SafeGetCharAt(pos + 1, '\0'); + n = styler.SafeGetCharAt(pos + 1, '\0'); if (c == '3' && n == '2') { pos += 2; } else if (c == '6' && n == '4') { -- cgit v1.2.3