aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-09-12 21:20:24 +0000
committerJustin Clarke Casey2008-09-12 21:20:24 +0000
commit0dc1018ca162325cf0ec8fa04167e3a99adedd61 (patch)
treeea5a747c8338895f25c0cc376bb8b27292370143 /OpenSim/Region/ScriptEngine
parentadd first round of folder tests (diff)
downloadopensim-SC-0dc1018ca162325cf0ec8fa04167e3a99adedd61.zip
opensim-SC-0dc1018ca162325cf0ec8fa04167e3a99adedd61.tar.gz
opensim-SC-0dc1018ca162325cf0ec8fa04167e3a99adedd61.tar.bz2
opensim-SC-0dc1018ca162325cf0ec8fa04167e3a99adedd61.tar.xz
* minor: Remove warnings
* leaving in the ones to do with ScriptBase since these actually indicate coding bugs that I don't have the time/brainpower to fix at the moment
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs32
1 files changed, 8 insertions, 24 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs
index db12c24..efe40a3 100644
--- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs
@@ -719,6 +719,7 @@ namespace OpenSim.Region.ScriptEngine.Common
719 //advance the counter to the letter 'e' 719 //advance the counter to the letter 'e'
720 i = i+4; 720 i = i+4;
721 break; 721 break;
722
722 default: 723 default:
723 // ok here we're catching all numeric types int,double,long we might want to spit these up mr accurately 724 // ok here we're catching all numeric types int,double,long we might want to spit these up mr accurately
724 // but for now we'll just do them as strings 725 // but for now we'll just do them as strings
@@ -726,7 +727,7 @@ namespace OpenSim.Region.ScriptEngine.Common
726 string numberValue=""; 727 string numberValue="";
727 728
728 // just loop through until the next known marker quote mark storing the string 729 // just loop through until the next known marker quote mark storing the string
729 while(JSON[i]!='"' && JSON[i]!=',' && JSON[i]!=']' && JSON[i]!='}' && JSON[i]!=' ') 730 while(JSON[i] != '"' && JSON[i] != ',' && JSON[i] != ']' && JSON[i] != '}' && JSON[i] != ' ')
730 { 731 {
731 numberValue+=""+JSON[i++]; 732 numberValue+=""+JSON[i++];
732 } 733 }
@@ -745,34 +746,17 @@ namespace OpenSim.Region.ScriptEngine.Common
745 // now lets clear the key, we're done with it and moving on 746 // now lets clear the key, we're done with it and moving on
746 currentKey=null; 747 currentKey=null;
747 } 748 }
748 749
749
750 break; 750 break;
751 } 751 }
752 752 }
753
754
755
756 }
757
758 } 753 }
759 catch(Exception e) 754 catch(Exception)
760 { 755 {
761 LSLError("osParseJSON: The JSON string is not valid " + JSON); 756 LSLError("osParseJSON: The JSON string is not valid " + JSON);
762 } 757 }
763 758
764 return jsondata; 759 return jsondata;
765 760 }
766
767 }
768
769
770
771
772
773
774
775
776
777 } 761 }
778} 762}