Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2004-03-06 20:04:52 +0300
committerKent Mein <mein@cs.umn.edu>2004-03-06 20:04:52 +0300
commit6f195f084cf0af012961aad3f2f940af0f703337 (patch)
treed939dfb8a23603e327375676e6cbc1a038978c71 /intern
parent0a4a186c2eec61412ccb1d2cdb6dc02da59209e9 (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')
-rw-r--r--intern/string/STR_String.h2
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