From 3d8bfc69bd92af14b755ea460fca37b8adf5e324 Mon Sep 17 00:00:00 2001 From: Arrehn Date: Thu, 11 Aug 2011 08:50:02 -0400 Subject: [PATCH] FIRE-1291, Make slplugin sleep when idle. Patch by Satomi Ahn --- indra/llcommon/llsdserialize_xml.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/indra/llcommon/llsdserialize_xml.cpp b/indra/llcommon/llsdserialize_xml.cpp index c5a7c6fc15..252718d145 100644 --- a/indra/llcommon/llsdserialize_xml.cpp +++ b/indra/llcommon/llsdserialize_xml.cpp @@ -729,12 +729,13 @@ void LLSDXMLParser::Impl::endElementHandler(const XML_Char* name) case ELEMENT_REAL: { - F64 r; +// SA: it seems sscanf does not always give expected result (for instance 0.009999999776482582092285156 is decoded as 0 under Linux) +/* F64 r; if ( sscanf(mCurrentContent.c_str(), "%lf", &r ) == 1 ) { // See if sscanf works - it's faster value = r; } - else + else*/ { value = LLSD(mCurrentContent).asReal(); }