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

Make global variables const #1749

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Conversation

lgoettgens
Copy link
Collaborator

To enhance type inference

Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.39%. Comparing base (f5a52ef) to head (dea3e77).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1749   +/-   ##
=======================================
  Coverage   87.39%   87.39%           
=======================================
  Files         117      117           
  Lines       29919    29919           
=======================================
+ Hits        26147    26148    +1     
+ Misses       3772     3771    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

moduli7 = [8, 29, 43]
residues7 = [[0, 1, 3, 5, 7], [0, 1, 12, 17, 28], [0, 1, 6, 7, 36, 37, 42]]
const moduli7 = [8, 29, 43]
const residues7 = [[0, 1, 3, 5, 7], [0, 1, 12, 17, 28], [0, 1, 6, 7, 36, 37, 42]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was curious what these vectors are used for. Turns put the code is buggy: the code in line 391 below checks for divisibility by 3 instead of 7... oops.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also confused by the mix of % and mod. Can you provide a PR fixing this function or make an issue so we don't forget?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only have my phone right now

@lgoettgens lgoettgens merged commit abdcb76 into Nemocas:master Jul 16, 2024
31 checks passed
@lgoettgens lgoettgens deleted the lg/global-const branch July 16, 2024 08:28
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