{"action":"opened","issue":{"url":"https://api.github.com/repos/numba/numba/issues/1249","labels_url":"https://api.github.com/repos/numba/numba/issues/1249/labels{/name}","comments_url":"https://api.github.com/repos/numba/numba/issues/1249/comments","events_url":"https://api.github.com/repos/numba/numba/issues/1249/events","html_url":"https://github.com/numba/numba/issues/1249","id":90017369,"number":1249,"title":"nopython decorated function returns different results than python only function","user":{"login":"bmer","id":4350451,"avatar_url":"https://avatars.githubusercontent.com/u/4350451?v=3","gravatar_id":"","url":"https://api.github.com/users/bmer","html_url":"https://github.com/bmer","followers_url":"https://api.github.com/users/bmer/followers","following_url":"https://api.github.com/users/bmer/following{/other_user}","gists_url":"https://api.github.com/users/bmer/gists{/gist_id}","starred_url":"https://api.github.com/users/bmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmer/subscriptions","organizations_url":"https://api.github.com/users/bmer/orgs","repos_url":"https://api.github.com/users/bmer/repos","events_url":"https://api.github.com/users/bmer/events{/privacy}","received_events_url":"https://api.github.com/users/bmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-22T05:41:58Z","updated_at":"2015-06-22T05:41:58Z","closed_at":null,"body":"Here is a small example that reproduces the issue: https://gist.github.com/bmer/679e11c3ac8be63179b6\r\n\r\nRunning this script should produce a matplotlib figure, showing a polygon, along with some vectors drawn at each vertex of the polygon. Cyan/Blue vectors should lie in a direction \"tangent\" to the vertex, and magenta/red vectors should lie in a direction \"normal\" to the vertex, pointing into the polygon. \r\n\r\nIf results are correct, we should see the cyan vectors lie exactly on the blue vectors, and similarly for red/magenta vectors. However, this is not the case: cyan/magenta vectors represent Python only code results, and blue/red vectors represent numba-fied code results.\r\n\r\nIn order to produce this error, I need to call the functions that generate tangent/normal vectors (numba version on line 70, and Python version on line 99) through wrapper functions (i.e. need one level of indirection), which are defined on line 129 (numba version) and 139 (python only version) respectively. \r\n\r\nThese wrapper functions are then called on line 165 and line 166. \r\n\r\nSorry for not being able to simplify the problematic script even more than this!"}}