Fixed signedness warning on Linux