[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9882 - GNUnet/src/util/containers
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9882 - GNUnet/src/util/containers |
Date: |
Wed, 23 Dec 2009 21:13:47 +0100 |
Author: grothoff
Date: 2009-12-23 21:13:47 +0100 (Wed, 23 Dec 2009)
New Revision: 9882
Modified:
GNUnet/src/util/containers/heap.c
Log:
fix
Modified: GNUnet/src/util/containers/heap.c
===================================================================
--- GNUnet/src/util/containers/heap.c 2009-12-23 20:07:37 UTC (rev 9881)
+++ GNUnet/src/util/containers/heap.c 2009-12-23 20:13:47 UTC (rev 9882)
@@ -281,7 +281,9 @@
struct GNUNET_CONTAINER_HeapNode *parent;
GNUNET_GE_ASSERT (NULL, node->parent == NULL);
- while ( (pos->cost < node->cost) ^ (heap->order ==
GNUNET_CONTAINER_HEAP_ORDER_MAX) )
+ while ( (heap->order == GNUNET_CONTAINER_HEAP_ORDER_MAX)
+ ? (pos->cost >= node->cost)
+ : (pos->cost <= node->cost) )
{
/* node is descendent of pos */
pos->tree_size += (1 + node->tree_size);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9882 - GNUnet/src/util/containers,
gnunet <=