|
@@ -62,11 +62,11 @@ static void PickleObject__write_bytes(PickleObject* buf, const void* data, int s
|
|
|
|
|
|
|
|
static void c11_sbuf__write_type_path(c11_sbuf* path_buf, py_Type type) {
|
|
static void c11_sbuf__write_type_path(c11_sbuf* path_buf, py_Type type) {
|
|
|
py_TypeInfo* ti = pk__type_info(type);
|
|
py_TypeInfo* ti = pk__type_info(type);
|
|
|
- if(py_isnil(&ti->module)) {
|
|
|
|
|
|
|
+ if(py_isnil(ti->module)) {
|
|
|
c11_sbuf__write_cstr(path_buf, py_name2str(ti->name));
|
|
c11_sbuf__write_cstr(path_buf, py_name2str(ti->name));
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- const char* mod_path = py_tostr(py_getdict(&ti->module, __path__));
|
|
|
|
|
|
|
+ const char* mod_path = py_tostr(py_getdict(ti->module, __path__));
|
|
|
c11_sbuf__write_cstr(path_buf, mod_path);
|
|
c11_sbuf__write_cstr(path_buf, mod_path);
|
|
|
c11_sbuf__write_char(path_buf, '.');
|
|
c11_sbuf__write_char(path_buf, '.');
|
|
|
c11_sbuf__write_cstr(path_buf, py_name2str(ti->name));
|
|
c11_sbuf__write_cstr(path_buf, py_name2str(ti->name));
|