Skip to content

Fix UB in Gtest example#316

Open
oliverlee wants to merge 1 commit intoemil-e:masterfrom
oliverlee:fix-gtest-example-ub
Open

Fix UB in Gtest example#316
oliverlee wants to merge 1 commit intoemil-e:masterfrom
oliverlee:fix-gtest-example-ub

Conversation

@oliverlee
Copy link

Replace int with unsigned to prevent UB from signed integer overflow.

Replace `int` with `unsigned` to prevent UB from signed integer
overflow.
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