changeset 600:d9558c1555df

test/callf: dcNewAggr() calls param fixes, used wrong field count
author Tassilo Philipp
date Wed, 21 Sep 2022 10:52:05 +0200
parents ed8917f53c45
children 1539ebfabebb
files test/callf/main.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/callf/main.c	Tue Sep 20 14:52:28 2022 +0200
+++ b/test/callf/main.c	Wed Sep 21 10:52:05 2022 +0200
@@ -178,7 +178,7 @@
   {
     int r_;
     struct A a;
-    DCaggr *s = dcNewAggr(1, sizeof(struct A));
+    DCaggr *s = dcNewAggr(2, sizeof(struct A));
     dcAggrField(s, DC_SIGCHAR_INT,  offsetof(struct A, i), 1);
     dcAggrField(s, DC_SIGCHAR_CHAR, offsetof(struct A, x), 7);
     dcCloseAggr(s);
@@ -197,7 +197,7 @@
   {
     int r_;
     struct B b;
-    DCaggr *s = dcNewAggr(1, sizeof(struct B));
+    DCaggr *s = dcNewAggr(2, sizeof(struct B));
     dcAggrField(s, DC_SIGCHAR_INT,   offsetof(struct B, i), 1);
     dcAggrField(s, DC_SIGCHAR_UCHAR, offsetof(struct B, x), 7);
     dcCloseAggr(s);