Author: mgoulish
Date: Thu Jan 10 17:26:13 2013
New Revision: 1431509

URL: http://svn.apache.org/viewvc?rev=1431509&view=rev
Log:
NO-JIRA : undoing r1431435.  It's wrong, wrong, wrong!

Modified:
    qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp?rev=1431509&r1=1431508&r2=1431509&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp Thu Jan 10 17:26:13 2013
@@ -114,15 +114,6 @@ class VariantImpl
     {
         const std::string& s = *value.string;
 
-        // The lexical cast below is throwing when the type
-        // is signed and the value is negative-zero.  Bug, I guess.
-        // So short-circuit it here.  Negative zero is zero.
-        double dbl_val = atof ( s.c_str() );
-        if ( ( dbl_val == 0 ) && ( 0 == s.find('-') ) ) {
-            T r = 0;
-            return r;
-        }
-
         try {
             T r = boost::lexical_cast<T>(s);
             //lexical_cast won't fail if string is a negative number and T is 
unsigned



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to