added explicit cast in function inline float Sqrt(const int v) in order to avoid warnings

This commit is contained in:
Nico Pietroni 2007-01-08 09:23:49 +00:00
parent 60958ee0e1
commit f8eeaae81f
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.20 2006/10/13 13:14:50 cignoni
Added two sqrt templates for resolving ambiguity of sqrt(int)
Revision 1.19 2005/12/01 01:03:37 cignoni
Removed excess ';' from end of template functions, for gcc compiling
@ -111,7 +114,7 @@ namespace math {
};
inline float Sqrt(const short v) { return sqrtf(v); }
inline float Sqrt(const int v) { return sqrtf(v); }
inline float Sqrt(const int v) { return sqrtf((float)v); }
inline float Sqrt(const float v) { return sqrtf(v); }
inline float Abs(const float v) { return fabsf(v); }