3 ms·
> For example, when gcc yells about comparing signed and unsigned ints, I find that there rarely is a true safety concern involved except for the small detail
by jcelerier 9y ago
> For example, when gcc yells about comparing signed and unsigned ints, I find that there rarely is a true safety concern involved
except for the small detail that stuff like "-1 < 1" is false when comparing int and uint because the int gets casted as the latter ? -Wsign-compare should be used as -Werror=sign-compare