From b49c934bd913c0973630abf32ea566eefa1aa973 Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Thu, 17 Nov 2011 15:03:25 -0500
Subject: [PATCH] LLSD-14: fixed way-too-overloaded local variable.

---
 indra/llcommon/llsd.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/indra/llcommon/llsd.cpp b/indra/llcommon/llsd.cpp
index 39d1f3e35f0..3fa08aee8d1 100644
--- a/indra/llcommon/llsd.cpp
+++ b/indra/llcommon/llsd.cpp
@@ -754,13 +754,13 @@ void LLSD::Impl::dumpStats() const
 
 void LLSD::Impl::calcStats(S32 type_counts[], S32 share_counts[]) const
 {
-	S32 type = S32(type());
-	if (0 <= type && type < LLSD::TypeLLSDNumTypes)
+	S32 tp = S32(type());
+	if (0 <= tp && tp < LLSD::TypeLLSDNumTypes)
 	{
-		type_counts[type]++;	
+		type_counts[tp]++;	
 		if (shared())
 		{
-			share_counts[type]++;
+			share_counts[tp]++;
 		}
 	}
 }
-- 
GitLab