Index: core/src/fxcrt/fx_extension.cpp |
diff --git a/core/src/fxcrt/fx_extension.cpp b/core/src/fxcrt/fx_extension.cpp |
index 7ff6b062b40dd2357340c4573178c637256cf6a7..6e82ab3d5c703632e2c1478c05c51b7a10d0077e 100644 |
--- a/core/src/fxcrt/fx_extension.cpp |
+++ b/core/src/fxcrt/fx_extension.cpp |
@@ -146,7 +146,7 @@ FX_FLOAT FXSYS_strtof(FX_LPCSTR pcsStr, FX_INT32 iLength, FX_INT32 *pUsedLen) |
iLength = (FX_INT32)FXSYS_strlen(pcsStr); |
} |
CFX_WideString ws = CFX_WideString::FromLocal(pcsStr, iLength); |
- return FXSYS_wcstof((FX_LPCWSTR)ws, iLength, pUsedLen); |
+ return FXSYS_wcstof(ws.c_str(), iLength, pUsedLen); |
} |
FX_FLOAT FXSYS_wcstof(FX_LPCWSTR pwsStr, FX_INT32 iLength, FX_INT32 *pUsedLen) |
{ |