You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on OS X 10.10.2 when building openttd 1.4.0 from source with clang and libc++ (rather than the older libstdc++), the build fails in src/fontcache.cpp because it cannot find the std::max() template for the given parameters.
The problem occurs because std::max() is called with the literal "1", which is an integer literal, and "slot->bitmap.width + BOOLEAN_EXPRESSION", which is unsigned int because the width field in FT_Bitmap is unsigned int. std::max(), however, is only defined as a template with two parameters of the same type, which "int" and "unsigned int" are not. I'm not sure whether this works with libstdc++, but this looks wrong to me.
This can be fixed by changing the integer literal to an unsigned integer literal by appending an "u". I'm attaching a patch to do this.
neverpanic opened the ticket and wrote:
Attachments
Reported version: 1.4.4
Operating system: Mac OS X
This issue was imported from FlySpray: https://bugs.openttd.org/task/6223
The text was updated successfully, but these errors were encountered: