소스 검색

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);
 }