Skip to content

Fix warning in generate.cc#3

Open
flaviens wants to merge 1 commit into
YosysHQ:mainfrom
flaviens:patch-1
Open

Fix warning in generate.cc#3
flaviens wants to merge 1 commit into
YosysHQ:mainfrom
flaviens:patch-1

Conversation

@flaviens
Copy link
Copy Markdown

Hi there!

This commit proposes to fix the warning:

scripts/generate.cc: In function ‘void print_expression(FILE*, int, uint32_t, bool, bool, bool)’:
scripts/generate.cc:157:31: warning: left shift of negative value [-Wshift-negative-value]
  157 |         while ((mask & ~((~0) << num_modes)) == 0)
      |                          ~~~~~^~~~~~~~~~~~

that I got when using g++.

Thank you!
Flavien

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