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

fix some float/int mismatch errors #6

Merged
merged 1 commit into from
Apr 28, 2020
Merged

Conversation

maweki
Copy link
Collaborator

@maweki maweki commented Apr 28, 2020

In python2 / was integer division if both operands were integer. In python3, / is always float division. This fixes some errors, but we probably have to do this at a lot of other points in the codebase as well. But this is probably the solution for most errors involving float/int mismatch at some point in the call chain.

@maweki maweki changed the title fix some integer division errors fix some float/int mismatch errors Apr 28, 2020
@kirienko kirienko merged commit cc10bf6 into kirienko:master Apr 28, 2020
@kirienko
Copy link
Owner

Thank you for this fix! And you're right, we will have to make tons of this kind of fixes.

@maweki maweki deleted the division branch April 29, 2020 17:02
cydanil pushed a commit that referenced this pull request Jun 6, 2020
Sync with thinkle/gourmet master branch
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

Successfully merging this pull request may close these issues.

2 participants