diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2008-01-01 14:14:25 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2008-01-01 14:14:25 +0300 |
commit | a11c4cd041a548e4255f9e202cd272fa238d9a29 (patch) | |
tree | c7b23fdd82a98ae172a98b6f272beb6fa94c6588 /intern/string/STR_String.h | |
parent | 7052576344b93e107be294f495fab5406f36b6f9 (diff) |
* silence more warnings
Diffstat (limited to 'intern/string/STR_String.h')
-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 2da2b57c6f2..0da0e2f2986 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 { float x=atof(pData); return x; } + inline float ToFloat() const { float x=(float)(atof(pData)); return x; } inline int ToInt() const { return atoi(pData); } // Operators |