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

Bug fix for mod and int division #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ohama
Copy link

@ohama ohama commented Jul 22, 2019

Divide: See the code
Remainder:
Int128 1L % Int128 2L = Int128 1
Int128 1L % Int128 -2L = Int128 -1 // bug; should be 1
Int128 -1L % Int128 2L = Int128 -1
Int28 -1L % Int128 -2L = Int128 1 // bug; should be -1

@ricksladkey
Copy link
Owner

Sorry, just noticed this. It looks like you found a bug! Thanks. I will take a look shortly.

@lucassfernando
Copy link

it really was a bug. Can we finalize this pull requests?

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.

4 participants