diff options
Diffstat (limited to 'intern')
-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 |