Few type castings in order to suppress warnings (-Wsign-compare): "comparison between signed and unsigned integer expressions" "signed and unsigned type in conditional expression"