diff --git a/src/lib/OpenEXRCore/internal_dwa_compressor.h b/src/lib/OpenEXRCore/internal_dwa_compressor.h index fbabe936ea..aa5a44a8ef 100644 --- a/src/lib/OpenEXRCore/internal_dwa_compressor.h +++ b/src/lib/OpenEXRCore/internal_dwa_compressor.h @@ -1693,7 +1693,7 @@ DwaCompressor_classifyChannels (DwaCompressor* me) prefixMap, me->_numChannels, curc->channel_name, - (size_t) (curc->channel_name - suffix)); + (size_t) (suffix - curc->channel_name)); for (size_t i = 0; i < me->_channelRuleCount; ++i) {