Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r1979:312ba53a9970
Date: 2015-05-12 10:04 +0200
http://bitbucket.org/cffi/cffi/changeset/312ba53a9970/
Log: Fix
diff --git a/_cffi1/parse_c_type.c b/_cffi1/parse_c_type.c
--- a/_cffi1/parse_c_type.c
+++ b/_cffi1/parse_c_type.c
@@ -370,10 +370,11 @@
g = &tok->info->ctx->globals[gindex];
if (_CFFI_GETOP(g->type_op) == _CFFI_OP_CONSTANT_INT ||
_CFFI_GETOP(g->type_op) == _CFFI_OP_ENUM) {
+ int neg;
struct _cffi_getconst_s gc;
gc.ctx = tok->info->ctx;
gc.gindex = gindex;
- int neg = ((int(*)(struct
_cffi_getconst_s*))g->address)
+ neg = ((int(*)(struct _cffi_getconst_s*))g->address)
(&gc);
if (neg == 0 && gc.value > MAX_SSIZE_T)
return parse_error(tok,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit