Since the default case is the same as what happens for 0 and -1, you can move the "case 0:" and "case -1:" statements to right above "default:", then get rid of this line and the one below it.