Skip to content

Add parantheses around the use of sizeof operator#2471

Open
Hussain1811 wants to merge 1 commit into
open-quantum-safe:mainfrom
Hussain1811:add_parantheses
Open

Add parantheses around the use of sizeof operator#2471
Hussain1811 wants to merge 1 commit into
open-quantum-safe:mainfrom
Hussain1811:add_parantheses

Conversation

@Hussain1811

Copy link
Copy Markdown
Contributor

Purpose
This PR fixes a formatting issue with the use of the sizeof operator.
Basically surrounding the use of sizeof operator with parantheses.

Checklist
Does this PR change the input/output behaviour of a cryptographic algorithm (i.e., does it change known answer test values)?
No. This PR just addresses a code formatting issue.

Does this PR change the list of algorithms available -- either adding, removing, or renaming? Does this PR otherwise change an API?
No. This PR just addresses a code formatting issue.

Signed-off-by: Sadiq Hussain M <Sadiq.Hussain.M@ibm.com>
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 85.793% (+3.5%) from 82.3% — Hussain1811:add_parantheses into open-quantum-safe:main

@Hussain1811 Hussain1811 marked this pull request as ready for review June 24, 2026 16:42

@bhess bhess left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AFAIK parentheses after sizeof are optional in C if the argument is not a type. Did you encounter any formatting issues in practice because of this?

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.

3 participants