Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd26a810

Browse files
committed
Use an unsigned char for bool if we don't use the native bool.
On (rare) platforms where sizeof(bool) > 1, we need to use our ownbool, but imported c99 code (such as Ryu) may want to use bool valuesas array subscripts, which elicits warnings if bool is defined aschar. Using unsigned char instead should work just as well for ourpurposes, and avoid such warnings.Per buildfarm members prariedog and locust.
1 parente04a390 commitd26a810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/include/c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
#else
306306

307307
#ifndefbool
308-
typedefcharbool;
308+
typedefunsignedcharbool;
309309
#endif
310310

311311
#ifndeftrue

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp