From a103b1a74a388a285191ba4826ea8e60706df59d Mon Sep 17 00:00:00 2001 From: tsepez Date: Thu, 27 Oct 2016 15:58:25 -0700 Subject: Fix more FX_BOOL / int noise in fxfa/parser. Review-Url: https://codereview.chromium.org/2460723002 --- xfa/fxfa/parser/cxfa_widgetdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/parser/cxfa_widgetdata.cpp') diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp index ce07faf60f..f237ad0a00 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.cpp +++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp @@ -235,7 +235,7 @@ FX_BOOL GetAttributeDefaultValue_Boolean(XFA_Element eElement, void* pValue; if (XFA_GetAttributeDefaultValue(pValue, eElement, eAttribute, XFA_ATTRIBUTETYPE_Boolean, dwPacket)) { - return (FX_BOOL)(uintptr_t)pValue; + return !!pValue; } return FALSE; } -- cgit v1.2.3