diff --git a/src/corelib/tools/qtaggedpointer.h b/src/corelib/tools/qtaggedpointer.h index a08912c4a5..d0c180ac5f 100644 --- a/src/corelib/tools/qtaggedpointer.h +++ b/src/corelib/tools/qtaggedpointer.h @@ -104,8 +104,10 @@ public: void setTag(Tag tag) { - Q_ASSERT_X((static_cast::TagType>(tag) & pointerMask()) == 0, - "QTaggedPointer::setTag", "Tag is larger than allowed by number of available tag bits"); + Q_ASSERT_X( + (static_cast(tag) & pointerMask()) == 0, + "QTaggedPointer::setTag", + "Tag is larger than allowed by number of available tag bits"); d = (d & pointerMask()) | static_cast(tag); }