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

return error #1

Open
nekulin opened this issue Jul 29, 2014 · 5 comments
Open

return error #1

nekulin opened this issue Jul 29, 2014 · 5 comments

Comments

@nekulin
Copy link

nekulin commented Jul 29, 2014

If to return 0.1 he still returns 0.0

@seyfiaslan
Copy link

Same error.
it prints 0 whatever my_calculate_pi returns.

@andresgutierrez
Copy link

Are you returning a double?

@seyfiaslan
Copy link

@andresgutierrez yes

yes.

  1. I've changed 0.0 to 1.1 as below

double my_calculate_pi(zval *accuracy) {
return 1.1;
}

  1. zephir build.
  2. apachectl restart

and it still returns 0.

@seyfiaslan
Copy link

I haven't changed the rest of code. Just changed the returning value from 0.0 to 1.1 in C file.

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

No branches or pull requests

3 participants