Commit a10d426b authored by stratakis's avatar stratakis Committed by Victor Stinner

bpo-36292: Mark unreachable code as such in long bitwise ops (GH-12333)

parent f7b57df0
......@@ -4637,8 +4637,7 @@ long_bitwise(PyLongObject *a,
size_z = negb ? size_b : size_a;
break;
default:
PyErr_BadArgument();
return NULL;
Py_UNREACHABLE();
}
/* We allow an extra digit if z is negative, to make sure that
......@@ -4665,8 +4664,7 @@ long_bitwise(PyLongObject *a,
z->ob_digit[i] = a->ob_digit[i] ^ b->ob_digit[i];
break;
default:
PyErr_BadArgument();
return NULL;
Py_UNREACHABLE();
}
/* Copy any remaining digits of a, inverting if necessary. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment