summaryrefslogtreecommitdiff
path: root/c/lib_obj.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-11-13 15:55:53 +0100
committerArmin Rigo <arigo@tunes.org>2015-11-13 15:55:53 +0100
commit4c39f9d8776acbe8871bd9a2d0da4a3ffc55924e (patch)
tree50bc1d8aa9b65f3c710824ba020e6f92e6c16d9f /c/lib_obj.c
parent2eb8e49216766fa09da37e7500908b4ac30440a5 (diff)
downloadcffi-4c39f9d8776acbe8871bd9a2d0da4a3ffc55924e.tar.gz
in-progress
Diffstat (limited to 'c/lib_obj.c')
-rw-r--r--c/lib_obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/lib_obj.c b/c/lib_obj.c
index 950b439..6494825 100644
--- a/c/lib_obj.c
+++ b/c/lib_obj.c
@@ -370,7 +370,7 @@ static PyObject *lib_build_and_cache_attr(LibObject *lib, PyObject *name,
_CFFI_GETARG(g->type_op));
if (ct == NULL)
return NULL;
- x = convert_to_object(g->address, ct);
+ x = convert_to_object((char *)&g->size_or_direct_fn, ct);
Py_DECREF(ct);
break;