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

Silence two warnings #959

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Silence two warnings #959

wants to merge 2 commits into from

Conversation

pstef
Copy link
Contributor

@pstef pstef commented Oct 19, 2024

../libretro/libretro.cpp:1123:13: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
 1123 |         if ((is_bsx((uint8 *) game->data + 0x7fc0)==1) | (is_bsx((uint8 *) game->data + 0xffc0)==1)) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                        ||
../libretro/libretro.cpp:1123:13: note: cast one or both operands to int to silence this warning
../libretro/libretro.cpp:1151:34: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
 1151 |             for(int lcv = 0; lcv < sizeof(Memory.RAM); lcv++)
      |                              ~~~ ^ ~~~~~~~~~~~~~~~~~~

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