Index: core/fxcrt/fx_basic_util.cpp |
diff --git a/core/fxcrt/fx_basic_util.cpp b/core/fxcrt/fx_basic_util.cpp |
index e52ff2ecee0ac66e1de1355d895c199b1d01f919..84196275b9502570529440c9c087bed28cb8b386 100644 |
--- a/core/fxcrt/fx_basic_util.cpp |
+++ b/core/fxcrt/fx_basic_util.cpp |
@@ -65,7 +65,7 @@ bool FX_atonum(const CFX_ByteStringC& strc, void* pData) { |
} |
// Switch back to the int space so we can flip to a negative if we need. |
- int value = static_cast<int>(integer.ValueOrDefault(kDefaultIntValue)); |
+ int value = integer.ValueOrDefault<int>(kDefaultIntValue); |
if (bNegative) |
value = -value; |