Skip to content

Commit

Permalink
fix clang-cl compilation
Browse files Browse the repository at this point in the history
Fixes:

error: invalid bitwise operation between different enumeration types

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb committed Jun 24, 2024
1 parent 3f1fab4 commit 84eefda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xmpsdk/src/ParseRDF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ FixupQualifiedNode ( XMP_Node * xmpParent )
// value node's children to be the parent's children. Delete the now useless value node.

XMP_Assert ( xmpParent->options & (kXMP_PropValueIsStruct | kRDF_HasValueElem) );
xmpParent->options &= ~ (kXMP_PropValueIsStruct | kRDF_HasValueElem);
xmpParent->options &= ~ (static_cast<unsigned long>(kXMP_PropValueIsStruct) | static_cast<unsigned long>(kRDF_HasValueElem));
xmpParent->options |= valueNode->options;

xmpParent->value.swap ( valueNode->value );
Expand Down
2 changes: 1 addition & 1 deletion xmpsdk/src/XMPCore_Impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ FindQualifierNode ( XMP_Node * parent,

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

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

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

0 comments on commit 84eefda

Please sign in to comment.