keep the style

bracket should be after "case * :" in the same line
warning cleaned

cast from size_t to int added