correct a couple of minor compiler warnings (implicit casts)