Fix sign comparison of enum.