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

Specify signed char instead of char #423

Open
b04505009 opened this issue Jan 30, 2025 · 0 comments
Open

Specify signed char instead of char #423

b04505009 opened this issue Jan 30, 2025 · 0 comments

Comments

@b04505009
Copy link

I got this compilation warning when compiling for aarch64

yuv_io.c: In function 'read_frame_header':
yuv_io.c:210:21: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  210 |       if (buffer[i] == EOF) return 0;
      |                     ^~

Since char is unsigned on arm, should we specify signed char in general?

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

No branches or pull requests

1 participant