Skip to content

Commit 84eefda

Browse files
committed
fix clang-cl compilation
Fixes: error: invalid bitwise operation between different enumeration types Signed-off-by: Rosen Penev <rosenp@gmail.com>
1 parent 3f1fab4 commit 84eefda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

xmpsdk/src/ParseRDF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ FixupQualifiedNode ( XMP_Node * xmpParent )
590590
// value node's children to be the parent's children. Delete the now useless value node.
591591

592592
XMP_Assert ( xmpParent->options & (kXMP_PropValueIsStruct | kRDF_HasValueElem) );
593-
xmpParent->options &= ~ (kXMP_PropValueIsStruct | kRDF_HasValueElem);
593+
xmpParent->options &= ~ (static_cast<unsigned long>(kXMP_PropValueIsStruct) | static_cast<unsigned long>(kRDF_HasValueElem));
594594
xmpParent->options |= valueNode->options;
595595

596596
xmpParent->value.swap ( valueNode->value );

xmpsdk/src/XMPCore_Impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ FindQualifierNode ( XMP_Node * parent,
948948

949949
if ( (qualNode == 0) && createNodes ) {
950950

951-
qualNode = new XMP_Node ( parent, qualName, (kXMP_PropIsQualifier | kXMP_NewImplicitNode) );
951+
qualNode = new XMP_Node ( parent, qualName, (static_cast<unsigned long>(kXMP_PropIsQualifier) | static_cast<unsigned long>(kXMP_NewImplicitNode)) );
952952
parent->options |= kXMP_PropHasQualifiers;
953953

954954
const bool isLang = XMP_LitMatch ( qualName, "xml:lang" );

0 commit comments

Comments
 (0)