Skip to content

Commit d480f61

Browse files
mbaludaCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 397325d commit d480f61

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • c/common/test/rules/unsignedoperationwithconstantoperandswraps

c/common/test/rules/unsignedoperationwithconstantoperandswraps/test.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ void test_sub_postcheck(unsigned int i1, unsigned int i2) {
8080
if (i1 > i2) {
8181
// handle error
8282
}
83+
}
8384

84-
void test_mod_rem(unsigned int i1, unsigned int i2) {
85-
i1 / i2; // COMPLIANT - exception 2
86-
i1 /= i2; // COMPLIANT - exception 2
87-
i1 % i2; // COMPLIANT - exception 2
88-
i1 %= i2; // COMPLIANT - exception 2
89-
}
85+
void test_mod_rem(unsigned int i1, unsigned int i2) {
86+
i1 / i2; // COMPLIANT - exception 2
87+
i1 /= i2; // COMPLIANT - exception 2
88+
i1 % i2; // COMPLIANT - exception 2
89+
i1 %= i2; // COMPLIANT - exception 2
9090
}

0 commit comments

Comments
 (0)