Don't let promise IDs be zero.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3713 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
f676cd937f
commit
12ab2f4b85
@ -1068,7 +1068,7 @@ promiseid_t tf_task_allocate_promise(tf_task_t* task)
|
|||||||
promiseid_t promiseId;
|
promiseid_t promiseId;
|
||||||
do {
|
do {
|
||||||
promiseId = task->_nextPromise++;
|
promiseId = task->_nextPromise++;
|
||||||
} while (_tf_task_find_promise(task, promiseId));
|
} while (_tf_task_find_promise(task, promiseId) || !promiseId);
|
||||||
|
|
||||||
promise_t promise =
|
promise_t promise =
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user