From ba8be566fdd4727855cc7feb87f1851ba77f10f4 Mon Sep 17 00:00:00 2001 From: "jband%netscape.com" Date: Tue, 1 Feb 2000 10:53:34 +0000 Subject: [PATCH] trivial block scope loop counter variable rename to squelch shadow warning.r=jband --- js/src/xpconnect/src/xpcdebug.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/xpconnect/src/xpcdebug.cpp b/js/src/xpconnect/src/xpcdebug.cpp index 7b79d2ef9ec..a36bd578047 100644 --- a/js/src/xpconnect/src/xpcdebug.cpp +++ b/js/src/xpconnect/src/xpcdebug.cpp @@ -156,16 +156,16 @@ static char* FormatJSFrame(JSContext* cx, JSStackFrame* fp, JS_ValueToECMAUint32(cx, val, &argCount) && argCount > namedArgCount) { - for(uint32 i = namedArgCount; i < argCount; i++) + for(uint32 k = namedArgCount; k < argCount; k++) { char num[8]; - JS_snprintf(num, 8, "%d", (int) i); + JS_snprintf(num, 8, "%d", (int) k); if(JS_GetProperty(cx, argsObj, num, &val)) { value = JSVAL2String(cx, val, &isString); buf = JS_sprintf_append(buf, "%s%s%s%s", - i ? ", " : "", + k ? ", " : "", isString ? "\"" : "", value ? value : "?unknown?", isString ? "\"" : "");