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:
Fredrik Holmqvist 2010-12-27 20:40:30 +00:00
parent e4fbd1171c
commit 0ef0a587b6

View File

@ -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++;
}