diff options
author | Aaron Brashears <aaronb@lindenlab.com> | 2007-02-09 23:35:12 +0000 |
---|---|---|
committer | Aaron Brashears <aaronb@lindenlab.com> | 2007-02-09 23:35:12 +0000 |
commit | 5cc44523f79b6cf495d2649fce9bf9e5181787e8 (patch) | |
tree | af7409521b24318b7c48a7434824178888c17a3e /indra/lscript/lscript_library/lscript_alloc.cpp | |
parent | 0009346667872b90d39089c3800ab3e00ce73b51 (diff) |
Result of svn merge -r57350:57790 svn+ssh://svn/svn/linden/branches/os-patches.001 into release.
Diffstat (limited to 'indra/lscript/lscript_library/lscript_alloc.cpp')
-rw-r--r-- | indra/lscript/lscript_library/lscript_alloc.cpp | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/indra/lscript/lscript_library/lscript_alloc.cpp b/indra/lscript/lscript_library/lscript_alloc.cpp index f26fef6d77..d98af1ddf3 100644 --- a/indra/lscript/lscript_library/lscript_alloc.cpp +++ b/indra/lscript/lscript_library/lscript_alloc.cpp @@ -982,58 +982,9 @@ S32 lsa_cmp_lists(U8 *buffer, S32 offset1, S32 offset2) S32 length1 = list1->getListLength(); S32 length2 = list2->getListLength(); - - if (length1 != length2) - { - return length1 - length2; - } - - LLScriptLibData *runner1 = list1; - LLScriptLibData *runner2 = list2; - - S32 count = 0; - - while (runner1) - { - if (runner1->mType != runner2->mType) - return count; - - switch(runner1->mType) - { - case LST_INTEGER: - if (runner1->mInteger != runner2->mInteger) - return count; - break; - case LST_FLOATINGPOINT: - if (runner1->mFP != runner2->mFP) - return count; - break; - case LST_KEY: - if (strcmp(runner1->mKey, runner2->mKey)) - return count; - break; - case LST_STRING: - if (strcmp(runner1->mString, runner2->mString)) - return count; - break; - case LST_VECTOR: - if (runner1->mVec != runner2->mVec) - return count; - case LST_QUATERNION: - if (runner1->mQuat != runner2->mQuat) - return count; - break; - default: - break; - } - - runner1 = runner1->mListp; - runner2 = runner2->mListp; - } - delete list1; delete list2; - return 0; + return length1 - length2; } |