Chromium Code Reviews| Index: core/include/fxcrt/fx_ext.h |
| diff --git a/core/include/fxcrt/fx_ext.h b/core/include/fxcrt/fx_ext.h |
| index 689d8e8fc4bd185d6cab5f5672ebe4d9107503db..a5bccb57b5171f3102fbe6da05149ca22a3a5f91 100644 |
| --- a/core/include/fxcrt/fx_ext.h |
| +++ b/core/include/fxcrt/fx_ext.h |
| @@ -60,11 +60,11 @@ inline int FXSYS_toHexDigit(const FX_CHAR c) { |
| } |
| inline bool FXSYS_isDecimalDigit(const FX_CHAR c) { |
| - return std::isdigit(c); |
| + return std::isdigit(c) != 0; |
|
Tom Sepez
2016/03/11 00:30:28
nit: prefer !!std::isdigit(c)
also below.
Wei Li
2016/03/11 04:11:36
Done.
|
| } |
| inline bool FXSYS_isDecimalDigit(const FX_WCHAR c) { |
| - return std::iswdigit(c); |
| + return std::iswdigit(c) != 0; |
| } |
| inline int FXSYS_toDecimalDigit(const FX_CHAR c) { |