From c5424abc8fccfa6b205db45f0ae2d64a362f01f5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 28 May 2020 14:34:10 +0200 Subject: Convert stream to DataTemplate --- src/whirligig.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/whirligig.c') diff --git a/src/whirligig.c b/src/whirligig.c index ee74a25e..843403ec 100644 --- a/src/whirligig.c +++ b/src/whirligig.c @@ -719,8 +719,9 @@ int main(int argc, char *argv[]) cur.div = NAN; cur.bw = NAN; cur.det = NULL; - if ( read_chunk_2(st, &cur, STREAM_READ_REFLECTIONS - | STREAM_READ_UNITCELL) != 0 ) { + if ( read_chunk(st, &cur, NULL, + STREAM_READ_REFLECTIONS | STREAM_READ_UNITCELL) != 0 ) + { break; } -- cgit v1.2.3