summaryrefslogtreecommitdiff
path: root/c/lib_obj.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-06-07 15:13:37 +0200
committerArmin Rigo <arigo@tunes.org>2015-06-07 15:13:37 +0200
commitd40ff42aba212f5b4e1f8c4e939ff20f9b3b3317 (patch)
tree0da3649f9ec78e7058edfcf18226d33dda2959be /c/lib_obj.c
parent50022768768d281352def438feffa31c306a9a80 (diff)
downloadcffi-d40ff42aba212f5b4e1f8c4e939ff20f9b3b3317.tar.gz
Some details
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 ce87de9..c5cd35e 100644
--- a/c/lib_obj.c
+++ b/c/lib_obj.c
@@ -300,7 +300,7 @@ static PyObject *lib_build_and_cache_attr(LibObject *lib, PyObject *name,
case _CFFI_OP_GLOBAL_VAR:
{
/* global variable of the exact type specified here */
- size_t g_size = (size_t)g->size_or_direct_fn;
+ Py_ssize_t g_size = (Py_ssize_t)g->size_or_direct_fn;
ct = realize_c_type(types_builder, types_builder->ctx.types,
_CFFI_GETARG(g->type_op));
if (ct == NULL)