Cleanup: replace C-style casts with functional casts for numeric types

Some changes missed from f68cfd6bb0.
This commit is contained in:
2022-09-25 20:27:46 +10:00
parent d35a10134c
commit 21d77a417e
40 changed files with 162 additions and 162 deletions

View File

@@ -273,7 +273,7 @@ void schedule_node(DepsgraphEvalState *state,
return;
}
/* Actually schedule the node. */
bool is_scheduled = atomic_fetch_and_or_uint8((uint8_t *)&node->scheduled, (uint8_t) true);
bool is_scheduled = atomic_fetch_and_or_uint8((uint8_t *)&node->scheduled, uint8_t(true));
if (!is_scheduled) {
if (node->is_noop()) {
/* skip NOOP node, schedule children right away */