Conversation
Notices
-
Embed this notice
anna (navi@social.vlhl.dev)'s status on Monday, 18-Nov-2024 00:17:30 JST anna @humm @lanodan bool is not an integer type, it's a bool type, while they can be implicitly converted to an integer (1 and 0), `true` and `false` are not integer constants anymore, they are `true` and `false`
before C23 you already couldn't assign a `bool` variable to a pointer, but `true` and `false` worked because they were defined as integer constants, but they aren't anymore.
(and this is a good thing, int *foo = false; should not be valid code)- Haelwenn /элвэн/ :triskell: likes this.