format and signedness mismatch fixes
27 files changed