Skip to content
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

bad reference type coercion #1140

Closed
robertwb opened this issue Oct 5, 2010 · 2 comments
Closed

bad reference type coercion #1140

robertwb opened this issue Oct 5, 2010 · 2 comments

Comments

@robertwb
Copy link
Contributor

robertwb commented Oct 5, 2010


On Mon, Oct 4, 2010 at 10:54 AM, Lisandro Dalcin <dalcinl@gmail.com> wrote:
> Please consider this code:
>
> from libcpp.vector cimport vector
> v = new vector[double]()
> from math import pi
> v.push_back(pi)
>
>
> This generated bad code, more or less:
>
> double &tmp; // bad code, un-init reference!
> tmp = PyFloat_AsDouble(pi)
> v.push_back(tmp)

Migrated from http://trac.cython.org/ticket/581

@robertwb
Copy link
Contributor Author

robertwb commented Oct 5, 2010

@robertwb changed owner from somebody to robertwb
commented

@robertwb
Copy link
Contributor Author

robertwb commented Oct 5, 2010

@robertwb changed resolution to fixed
status from new to closed
commented

http://hg.cython.org/cython-devel/rev/afd14e20b678
http://hg.cython.org/cython-devel/rev/1243011b27b4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant