Postfix/prefix increment evaluation order is not changed by parantheses. Use '+ 1' for readability instead. CID 2983.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39965 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -178,7 +178,7 @@ queue_dpc(void *handle, dpc_func function, void *arg)
|
|||||||
else {
|
else {
|
||||||
queue->slots[queue->tail].function = function;
|
queue->slots[queue->tail].function = function;
|
||||||
queue->slots[queue->tail].arg = arg;
|
queue->slots[queue->tail].arg = arg;
|
||||||
queue->tail = (queue->tail++) % queue->size;
|
queue->tail = (queue->tail + 1) % queue->size;
|
||||||
queue->count++;
|
queue->count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user