Skip to content

Commit

Permalink
fix: typo in ColorProCacheKey equality operator
Browse files Browse the repository at this point in the history
Was accidentally comparing the "a" namedtransform string to itself, instead of the "b" namedtransform.
  • Loading branch information
zachlewis committed Aug 26, 2024
1 parent 4bfb562 commit 07c9a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libOpenImageIO/color_ocio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ColorProcCacheKey {
a.view, a.file, a.namedtransform, a.inverse)
< std::tie(b.hash, b.inputColorSpace, b.outputColorSpace,
b.context_key, b.context_value, b.looks, b.display,
b.view, b.file, a.namedtransform, b.inverse);
b.view, b.file, b.namedtransform, b.inverse);
}

friend bool operator==(const ColorProcCacheKey& a,
Expand All @@ -116,7 +116,7 @@ class ColorProcCacheKey {
a.view, a.file, a.namedtransform, a.inverse)
== std::tie(b.hash, b.inputColorSpace, b.outputColorSpace,
b.context_key, b.context_value, b.looks, b.display,
b.view, b.file, a.namedtransform, b.inverse);
b.view, b.file, b.namedtransform, b.inverse);
}
ustring inputColorSpace;
ustring outputColorSpace;
Expand Down

0 comments on commit 07c9a96

Please sign in to comment.