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

count.c: Bugfix count ovfl in recent refactoring #1519

Merged
merged 1 commit into from
May 3, 2024

Conversation

ampli
Copy link
Member

@ampli ampli commented May 3, 2024

In 6c4283a (*), I neglected the comments on overflow handling when I created scount () and mistakenly used a 32 int there as an accumulator. I found this problem when the long "And yet he..." sentence caused two overflows while debugging.

I fixed it and also added an overflow-detection comment.

(*) This commit message says mcount() instead of scount().

@linas linas merged commit f393ef5 into opencog:master May 3, 2024
1 check passed
@ampli ampli deleted the count-ovfl-fix branch May 25, 2024 01:01
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