Got rid of a cast to float which was causing a warning. (Used a temp
[blender-staging.git] / intern / string / STR_String.h
index a7f91c3b3772dcd449628aad6a9b8895ce1ecef1..2da2b57c6f2f2245282e5cec8d163c28eb50f45f 100644 (file)
@@ -141,7 +141,7 @@ public:
        inline operator const char *() const                                                            { return pData; }
        inline char *Ptr()                                                                                                      { return pData; }
        inline const char *ReadPtr() const                                                                      { return pData; }
-       inline float    ToFloat() const                                                                         { return (float) atof(pData); }
+       inline float    ToFloat() const                                                                         { float x=atof(pData); return x; }
        inline int              ToInt() const                                                                           { return atoi(pData); }
 
        // Operators