omitted old intermediating sprintf target
correcting possible sign-extension warnings