Skip to content

fix(SW024): skip non-zero const divisors (incl. casts) - #2

Merged
AtoMicKraK1n merged 3 commits into
mainfrom
fix/sw024-const-divisors
Jul 27, 2026
Merged

fix(SW024): skip non-zero const divisors (incl. casts)#2
AtoMicKraK1n merged 3 commits into
mainfrom
fix/sw024-const-divisors

Conversation

@AtoMicKraK1n

Copy link
Copy Markdown
Contributor

Changes
• Collect file/mod/impl consts with non-zero int literal values
• Treat divisor as safe if it resolves to that const (peel as / parens)
• Still flag: variables, account fields, const = 0, literal / 0
• Tests + sw024/safe fixture

solving #1

@AtoMicKraK1n
AtoMicKraK1n merged commit e236d31 into main Jul 27, 2026
1 check passed
@AtoMicKraK1n
AtoMicKraK1n deleted the fix/sw024-const-divisors branch July 29, 2026 10:15
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.

1 participant