silenced compiler warnings with some changes to int types