Replace unsigned size variable with signed size