Got rid of a cast to float which was causing a warning. (Used a temp
authorKent Mein <mein@cs.umn.edu>
Sat, 6 Mar 2004 17:04:52 +0000 (17:04 +0000)
committerKent Mein <mein@cs.umn.edu>
Sat, 6 Mar 2004 17:04:52 +0000 (17:04 +0000)
var instead)   return (float)atof(something);

is now   float x=atof(something); return x;

There is still another one(warning)in this file but hey its a start.

Kent

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