summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-12-14 18:43:58 -0800
committerLei Zhang <thestig@chromium.org>2015-12-14 18:43:58 -0800
commit4d4c61ea4e39135b126879dd6d7bc99a59a3a843 (patch)
treef8a0ef21fa03e1a7e7825164a252405c65af7ab8
parente385244f8cd6ae376f6b3cf1265a0795d5d30eff (diff)
downloadpdfium-4d4c61ea4e39135b126879dd6d7bc99a59a3a843.tar.xz
Fix Windows build failure due to double vs float mismatch.
TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1525853003 .
-rw-r--r--core/src/fxcrt/fx_basic_wstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxcrt/fx_basic_wstring.cpp b/core/src/fxcrt/fx_basic_wstring.cpp
index 119de66b84..dd26f595f2 100644
--- a/core/src/fxcrt/fx_basic_wstring.cpp
+++ b/core/src/fxcrt/fx_basic_wstring.cpp
@@ -989,7 +989,7 @@ int CFX_WideString::GetInteger() const {
return m_pData ? FXSYS_wtoi(m_pData->m_String) : 0;
}
FX_FLOAT CFX_WideString::GetFloat() const {
- return m_pData ? FX_wtof(m_pData->m_String, m_pData->m_nDataLength) : 0.0;
+ return m_pData ? FX_wtof(m_pData->m_String, m_pData->m_nDataLength) : 0.0f;
}
static CFX_ByteString _DefMap_GetByteString(CFX_CharMap* pCharMap,
const CFX_WideString& widestr) {