fix compile problems with msvc6

svn path=/trunk/; revision=18634
This commit is contained in:
Christoph von Wittich 2005-10-20 15:28:35 +00:00
parent f7dd935bcd
commit 0d623d28e1
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@
*/
#include "pch.h"
#ifdef _MSC_VER
#ifndef MAX_PATH
#define MAX_PATH _MAX_PATH
#endif

View file

@ -317,7 +317,7 @@ numberf(std::string& f, double __n, char exp_sign, int size, int precision, int
else if ( frac < -0.5 )
e--;
result = numberf(f,__n/pow(10.0L,e),'f',size-4, precision, type);
result = numberf(f,__n/pow(10.0L,(long double)e),'f',size-4, precision, type);
if (result < 0)
return false;
f += exp_sign;
@ -510,7 +510,7 @@ wnumberf(std::wstring& f, double __n, wchar_t exp_sign, int size, int precision
else if ( frac < -0.5 )
e--;
result = wnumberf(f,__n/pow(10.0L,e),L'f',size-4, precision, type);
result = wnumberf(f,__n/pow(10.0L,(long double) e),L'f',size-4, precision, type);
if (result < 0)
return false;
f += exp_sign;