diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2008-08-14 22:30:17 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2008-08-14 22:30:17 +0000 |
commit | 1ab7e8f60f39c70ed0caf13b3945a6c65d213276 (patch) | |
tree | e63186ab9e9f89743c5980d143fcab1679dbd34a /numpy/core/src/ufuncobject.c | |
parent | 988642ed68f15590ddbb330819cf20f2adc1e878 (diff) | |
download | numpy-1ab7e8f60f39c70ed0caf13b3945a6c65d213276.tar.gz |
Fix warnings in ufunc code [patch by Wenjie Fu].
Diffstat (limited to 'numpy/core/src/ufuncobject.c')
-rw-r--r-- | numpy/core/src/ufuncobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/ufuncobject.c b/numpy/core/src/ufuncobject.c index 432f8ccd9..6bc8e664f 100644 --- a/numpy/core/src/ufuncobject.c +++ b/numpy/core/src/ufuncobject.c @@ -1383,7 +1383,7 @@ _is_same_name(const char* s1, const char* s2) static int _parse_signature(PyUFuncObject *self, const char *signature) { - int len; + size_t len; char const **var_names; int nd = 0; /* number of dimension of the current argument */ int cur_arg = 0; /* index into core_num_dims&core_offsets */ @@ -1496,10 +1496,10 @@ _parse_signature(PyUFuncObject *self, const char *signature) /* check for trivial core-signature, e.g. "(),()->()" */ if (cur_core_dim == 0) self->core_enabled = 0; - _pya_free(var_names); + _pya_free((void*)var_names); return 0; fail: - _pya_free(var_names); + _pya_free((void*)var_names); if (parse_error) { char *buf = _pya_malloc(sizeof(char) * (len + 200)); if (buf) { |