Skip to content

Fix -Wparentheses compiler warning#4424

Open
d-torrance wants to merge 1 commit into
Macaulay2:developmentfrom
d-torrance:parentheses
Open

Fix -Wparentheses compiler warning#4424
d-torrance wants to merge 1 commit into
Macaulay2:developmentfrom
d-torrance:parentheses

Conversation

@d-torrance

Copy link
Copy Markdown
Member

Fixes the following:

../../../../Macaulay2/e/buffer.cpp: In member function ‘void buffer::put(cci_srcptr)’: ../../../../Macaulay2/e/buffer.cpp:175:28: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  175 |       mpfi_is_zero(&x->re) && mpfi_is_zero(&x->im)) {
      |       ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~

AI Disclosure

No AI used

Fixes the following:

../../../../Macaulay2/e/buffer.cpp: In member function ‘void buffer::put(cci_srcptr)’:
../../../../Macaulay2/e/buffer.cpp:175:28: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  175 |       mpfi_is_zero(&x->re) && mpfi_is_zero(&x->im)) {
      |       ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
@d-torrance d-torrance added Engine Macaulay2/e build issue platform specific issues involving compiling M2, generating examples, or running tests labels Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build issue platform specific issues involving compiling M2, generating examples, or running tests Engine Macaulay2/e

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant