diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2011-11-17 15:03:25 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2011-11-17 15:03:25 -0500 |
commit | b49c934bd913c0973630abf32ea566eefa1aa973 (patch) | |
tree | 13f62834341d073858c4f7829637f188bb0f6a2c /indra/llcommon | |
parent | bd5b1ed713506d365793c7f9cb49d506ce392e7a (diff) |
LLSD-14: fixed way-too-overloaded local variable.
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/llsd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llcommon/llsd.cpp b/indra/llcommon/llsd.cpp index 39d1f3e35f..3fa08aee8d 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]++; } } } |