mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Added casts from unsigned char to char when calling rds_object() on
frozen code.
This commit is contained in:
parent
15cc9a0a76
commit
1741d60725
1 changed files with 2 additions and 2 deletions
|
@ -596,7 +596,7 @@ get_frozen_object(name)
|
|||
err_setstr(ImportError, "No such frozen object");
|
||||
return NULL;
|
||||
}
|
||||
return rds_object(p->code, p->size);
|
||||
return rds_object((char *)p->code, p->size);
|
||||
}
|
||||
|
||||
/* Initialize a frozen module.
|
||||
|
@ -616,7 +616,7 @@ init_frozen(name)
|
|||
return 0;
|
||||
if (verbose)
|
||||
fprintf(stderr, "import %s # frozen\n", name);
|
||||
co = rds_object(p->code, p->size);
|
||||
co = rds_object((char *)p->code, p->size);
|
||||
if (co == NULL)
|
||||
return -1;
|
||||
if (!is_codeobject(co)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue