From 6f195f084cf0af012961aad3f2f940af0f703337 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Sat, 6 Mar 2004 17:04:52 +0000 Subject: 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 --- intern/string/STR_String.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern') 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 -- cgit v1.2.3