Return INVALID_DEFERRED_TOKEN on allocation failure (#26012)

Return the proper deferred_token type instead of boolean false.
This commit is contained in:
フィルターペーパー
2026-02-13 14:51:33 +08:00
committed by GitHub
parent edd2e3d354
commit 6b2a2ab7ac
+1 -1
View File
@@ -56,7 +56,7 @@ deferred_token defer_exec_advanced(deferred_executor_t *table, size_t table_coun
// Work out the new token value, dropping out if none were available
deferred_token token = allocate_token(table, table_count);
if (token == INVALID_DEFERRED_TOKEN) {
return false;
return INVALID_DEFERRED_TOKEN;
}
// Set up the executor table entry