Compiling problems with

When I try to compile a releasebuild for my iOS App I get a compile error from, line 277:

const auto wordEnd = jmin (attribStringLen, (currentPosition + attr.range.getLength()).getAddress() - beginPtr.getAddress());

Xcode sais can’t find a fitting function jmin

I guess the problem is that attribStringLen is a const long and (currentPosition + attr.range.getLength()).getAddress() - beginPtr.getAddress() is read as long.

I was able to solve it by replacing line 277 by:

            const long compareLen = (currentPosition + attr.range.getLength()).getAddress() - beginPtr.getAddress();
            const auto wordEnd = jmin (attribStringLen, compareLen);