summaryrefslogtreecommitdiffstats
path: root/src/mergesort.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mergesort.c')
-rw-r--r--src/mergesort.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mergesort.c b/src/mergesort.c
index 883d8ba..1b21db7 100644
--- a/src/mergesort.c
+++ b/src/mergesort.c
@@ -49,16 +49,16 @@ static int merge(struct stream * const dest, struct stream * const A, struct str
struct entry_l *a;
struct entry_l *b;
- a = get(A);
- b = get(B);
+ a = A->get(A);
+ b = B->get(B);
while (a || b) {
if (a && (!b || a->val <= b->val)) {
- put(dest, a);
- a = get(A);
+ dest->put(dest, a);
+ a = A->get(A);
} else {
- put(dest, b);
- b = get(B);
+ dest->put(dest, b);
+ b = B->get(B);
}
}