fix up yet more annoying signed/unsigned and mixed type errors
13 files changed