diff options
author | Kent Mein <mein@cs.umn.edu> | 2004-03-06 20:04:52 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2004-03-06 20:04:52 +0300 |
commit | 6f195f084cf0af012961aad3f2f940af0f703337 (patch) | |
tree | d939dfb8a23603e327375676e6cbc1a038978c71 /intern/string | |
parent | 0a4a186c2eec61412ccb1d2cdb6dc02da59209e9 (diff) |
Got rid of a cast to float which was causing a warning. (Used a temp
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
Diffstat (limited to 'intern/string')
-rw-r--r-- | intern/string/STR_String.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/string/STR_String.h b/intern/string/STR_String.h index a7f91c3b377..2da2b57c6f2 100644 --- a/intern/string/STR_String.h +++ b/intern/string/STR_String.h @@ -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 |