You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building fails on architectures with unsigned char like powerpc:
../../emu64-5.0.18/src/c64_class.cpp: In member function 'void
C64Class::AnalyzeSDLEvent(SDL_Event*)':
../../emu64-5.0.18/src/c64_class.cpp:1760:46: error: narrowing conversion of '-1' from 'int' to 'char' [-Wnarrowing]
1760 | static char joy_axis_tbl[5] = {1,1,0,0,-1};
| ^
*** [c64_class.o] Error code 1
Suggestion: explicitly use unsigned char and signed char where appropriate.
Ok, I always assumed that char == unsigned char. But just checked my C / C ++ Reference again. ANSI does not specify whether char is signed or not. I will correct that, maybe I have used more of it. I'll go through everything. Thank you!
Building fails on architectures with unsigned
char
like powerpc:Suggestion: explicitly use
unsigned char
andsigned char
where appropriate.Reported from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245200
The text was updated successfully, but these errors were encountered: