Преглед изворни кода

Add extra brackets to clarify scope.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1437 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake пре 18 година
родитељ
комит
73d4db719d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      include/queue.h

+ 1 - 1
include/queue.h

@@ -93,7 +93,7 @@ static inline int queue_is_full (struct queue *queue) {
 	int full;
 
 	pthread_mutex_lock (&queue->mutex);
-	full = queue->size - 1 == queue->used;
+	full = ((queue->size - 1) == queue->used);
 	pthread_mutex_unlock (&queue->mutex);
 	return (full);
 }