| Index: Source/core/dom/NodeFilter.cpp
|
| diff --git a/Source/core/dom/NodeFilter.cpp b/Source/core/dom/NodeFilter.cpp
|
| index 372ea5c5e7a8a2ee8871b400a07d32e74a3a8e8c..50509dfeeb060004db67726fface8654d6b5c005 100644
|
| --- a/Source/core/dom/NodeFilter.cpp
|
| +++ b/Source/core/dom/NodeFilter.cpp
|
| @@ -27,10 +27,9 @@
|
|
|
| namespace blink {
|
|
|
| -short NodeFilter::acceptNode(Node* node, ExceptionState& exceptionState) const
|
| +unsigned NodeFilter::acceptNode(Node* node, ExceptionState& exceptionState) const
|
| {
|
| - // cast to short silences "enumeral and non-enumeral types in return" warning
|
| - return m_condition ? m_condition->acceptNode(node, exceptionState) : static_cast<short>(FILTER_ACCEPT);
|
| + return m_condition ? m_condition->acceptNode(node, exceptionState) : FILTER_ACCEPT;
|
| }
|
|
|
| DEFINE_TRACE(NodeFilter)
|
|
|