mirror of
https://github.com/johndoe6345789/typthon.git
synced 2026-04-24 13:45:05 +00:00
Fix final remaining Py_ patterns
- Fixed Py_CONSTANT_* → Ty_CONSTANT_* - Fixed Py_UNREACHABLE → Ty_UNREACHABLE - Fixed Py_*_input constants (file_input, single_input, eval_input, func_type_input) - Fixed _Py_COMP_DIAG_* compiler diagnostic macros Build continues to progress toward completion. Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -2281,7 +2281,7 @@ long_format_binary(TyObject *aa, int base, int alternate,
|
||||
bits = 1;
|
||||
break;
|
||||
default:
|
||||
Py_UNREACHABLE();
|
||||
Ty_UNREACHABLE();
|
||||
}
|
||||
|
||||
/* Compute exact length 'sz' of output string. */
|
||||
@@ -5550,7 +5550,7 @@ long_bitwise(PyLongObject *a,
|
||||
size_z = negb ? size_b : size_a;
|
||||
break;
|
||||
default:
|
||||
Py_UNREACHABLE();
|
||||
Ty_UNREACHABLE();
|
||||
}
|
||||
|
||||
/* We allow an extra digit if z is negative, to make sure that
|
||||
@@ -5577,7 +5577,7 @@ long_bitwise(PyLongObject *a,
|
||||
z->long_value.ob_digit[i] = a->long_value.ob_digit[i] ^ b->long_value.ob_digit[i];
|
||||
break;
|
||||
default:
|
||||
Py_UNREACHABLE();
|
||||
Ty_UNREACHABLE();
|
||||
}
|
||||
|
||||
/* Copy any remaining digits of a, inverting if necessary. */
|
||||
|
||||
Reference in New Issue
Block a user