Fix signed/unsigned comparisons
There are some signed/unsigned warnings. Some signed variables are used for ranges or mem allocs, so I put them as unsigned as they are compared to a maximal value.
There are some signed/unsigned warnings. Some signed variables are used for ranges or mem allocs, so I put them as unsigned as they are compared to a maximal value.