8000 Error in the typemaps in numpy.i (Trac #620) · Issue #1218 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Error in the typemaps in numpy.i (Trac #620) #1218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 3 comments
Closed

Error in the typemaps in numpy.i (Trac #620) #1218

numpy-gitbot opened this issue Oct 19, 2012 · 3 comments
Labels
00 - Bug component: Other Priority: high High priority, also add milestones for urgent issues
Milestone

Comments

@numpy-gitbot
Copy link

Original ticket http://projects.scipy.org/numpy/ticket/620 on 2007-11-23 by trac user matthieu.brucher, assigned to @stefanv.

Some typemaps are not C89 compatible (variables are declared inside a block and not at its beginning).
For instance :

%typemap(in)
(DATA_TYPE IN_ARRAY1[ANY])
(PyArrayObject* array=NULL, int is_new_object=0)
{
array = obj_to_array_contiguous_allow_conversion($input, DATA_TYPECODE, &is_new_object);
npy_intp size[1] = { $1_dim0 };
if (!array || !require_dimensions(array, 1) || !require_size(array, size, 1)) SWIG_fail;
$1 = ($1_ltype) array_data(array);
}

size should have been declared first.

@numpy-gitbot
Copy link
Author

Attachment added by trac user matthieu.brucher on 2007-11-23: numpy.patch

@numpy-gitbot
Copy link
Author

Milestone changed to 1.0.5 by @stefanv on 2007-11-23

@numpy-gitbot
6CEF Copy link
Author

@stefanv wrote on 2007-11-23

Thanks! Applied in r4493.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug component: Other Priority: high High priority, also add milestones for urgent issues
Projects
None yet
Development

No branches or pull requests

1 participant
0