Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use scalar if conditions #54

Closed
leolitenstorrent opened this issue Jul 18, 2023 · 3 comments
Closed

Use scalar if conditions #54

leolitenstorrent opened this issue Jul 18, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@leolitenstorrent
Copy link

Hello Alex,

May you make the conditions for if statements scalars instead of vectors (see image below)? This has been causing Spyglass Lint to generate warning messages. Thank you!

image

@leolitenstorrent leolitenstorrent changed the title Use scalar conditions Use scalar if conditions Jul 18, 2023
@amykyta3 amykyta3 added feature request New feature or request bug Something isn't working and removed feature request New feature or request labels Jul 19, 2023
@amykyta3
Copy link
Member

Will do. In this case, I can change the ^ to != for equivalent behavior.

Is this the only situation where this type of warning was flagged?

@leolitenstorrent
Copy link
Author

leolitenstorrent commented Jul 19, 2023

Hello,

Thank you! I remember this type of waring is also flapped for the interrupt capture conditions of other interrupt register types.

image image image

@amykyta3
Copy link
Member

Thanks. Will be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants