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

Find out about negative transactioncounts #2

Open
Mschnuff opened this issue Apr 23, 2020 · 1 comment
Open

Find out about negative transactioncounts #2

Mschnuff opened this issue Apr 23, 2020 · 1 comment
Labels
question Further information is requested

Comments

@Mschnuff
Copy link
Contributor

For some reason negative transactioncounts sometimes show up. As of now there is no evidence that my program produces these numbers during the extraction process. Kevin suggests these negative numbers communicate a very specific kind of error.

negative graph

negativ_trans

@kiview
Copy link
Contributor

kiview commented May 5, 2020

Just a hunch, but are you converting to integers somewhere? Potential overflow into a negative number, although it would be weird that it is exactly -1.

General rules for Java integers is as follows:

If an integer addition overflows, then the result is the low-order bits of the mathematical sum as represented in some sufficiently large two's-complement format. If overflow occurs, then the sign of the result is not the same as the sign of the mathematical sum of the two operand values.

Mschnuff added a commit that referenced this issue May 15, 2020
fixes mostly spelling mistakes
@kiview kiview added the question Further information is requested label May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants