Fix sign comparison warning

Since the previous line ensured len is < 100, just casting it is fine.