aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2020-11-29 09:26:28 +0100
committerThomas Schmucker <ts@its1.de>2020-11-29 09:26:28 +0100
commit321e9481ca701f32294357fa9c766564035f0f17 (patch)
tree7ec80e294e99353929e26617b3eb88b8830e7627
parentea8cdd180adbf6c3dacd3c700482b72825a9b8c1 (diff)
downloaddata-structures-321e9481ca701f32294357fa9c766564035f0f17.tar.gz
data-structures-321e9481ca701f32294357fa9c766564035f0f17.tar.bz2
data-structures-321e9481ca701f32294357fa9c766564035f0f17.zip
Klammern...
-rw-r--r--heap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/heap.c b/heap.c
index dec68a2..7e0f64e 100644
--- a/heap.c
+++ b/heap.c
@@ -165,12 +165,14 @@ test_pq(void)
165 165
166 pq_init(pq); 166 pq_init(pq);
167 167
168 for ( int i = 0; i != 10; ++i ) 168 for ( int i = 0; i != 10; ++i ) {
169 pq_push(pq, rand()); 169 pq_push(pq, rand());
170 }
170 171
171 T data; 172 T data;
172 while ( pq_pop(pq, &data) ) 173 while ( pq_pop(pq, &data) ) {
173 printf("%d\n", data); 174 printf("%d\n", data);
175 }
174} 176}
175 177
176int 178int