gh-106267: Add type cast to generated code (#106289)

This commit is contained in:
Kirill Podoprigora 2023-06-30 22:11:10 +03:00 committed by GitHub
parent 02ce3d56e6
commit 2062e11501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -187,7 +187,7 @@
case TO_BOOL_ALWAYS_TRUE: {
PyObject *value = stack_pointer[-1];
PyObject *res;
uint32_t version = operand;
uint32_t version = (uint32_t)operand;
#line 359 "Python/bytecodes.c"
// This one is a bit weird, because we expect *some* failures:
assert(version);