compiler warnings and integer type consistentcy