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:
parent
e4fbd1171c
commit
0ef0a587b6
@ -178,7 +178,7 @@ queue_dpc(void *handle, dpc_func function, void *arg)
|
||||
else {
|
||||
queue->slots[queue->tail].function = function;
|
||||
queue->slots[queue->tail].arg = arg;
|
||||
queue->tail = (queue->tail++) % queue->size;
|
||||
queue->tail = (queue->tail + 1) % queue->size;
|
||||
queue->count++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user