fuppes icon indicating copy to clipboard operation
fuppes copied to clipboard

`log(unsigned int)` and `<<(unsigned int)` can conflict with other signatures on some platforms

Open RomanHargrave opened this issue 9 years ago • 1 comments

When compiling on an ARMv6 device, I noticed some errors regarding redefinition of the two aforementioned methods.

This is because unsigned int and size_t appear to be synonymous on this platform. This will reliably break compilation.

I may suggest that the method be declared with an unsigned int signature in addition to an unsigned long signature rather than size_t, as size_t is not guaranteed to be different from unsigned int.

RomanHargrave avatar Aug 02 '15 19:08 RomanHargrave

I got a an error cross-compiling for i686: http://dpaste.com/0WFY0EB. Maybe @RomanHargrave is right.

beholders-eye avatar Oct 14 '16 14:10 beholders-eye