Просмотр исходного кода

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 лет назад
Родитель
Сommit
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);
 }