diff options
author | Guido van Rossum <guido@python.org> | 1996-08-08 18:52:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-08-08 18:52:59 (GMT) |
commit | 1741d607255226e721098c8b723f11586887344e (patch) | |
tree | ad799bdf806539a715a0300bd7df9255228077a2 /Python/import.c | |
parent | 15cc9a0a76acb66e2d0c717f13fba142986764b1 (diff) | |
download | cpython-1741d607255226e721098c8b723f11586887344e.zip cpython-1741d607255226e721098c8b723f11586887344e.tar.gz cpython-1741d607255226e721098c8b723f11586887344e.tar.bz2 |
Added casts from unsigned char to char when calling rds_object() on
frozen code.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index 5c04f49..04a00af 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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)) { |