diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-12-11 20:20:52 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-12-11 20:20:52 -0800 |
commit | d10133ca992eeb8e26940c25959017a9250c0768 (patch) | |
tree | a72badae0b2b0d57c2eb027a519456935da56aa2 | |
parent | 2f56813d42d8ef81d77be76cceb22189319826f0 (diff) | |
download | txr-d10133ca992eeb8e26940c25959017a9250c0768.tar.gz txr-d10133ca992eeb8e26940c25959017a9250c0768.tar.bz2 txr-d10133ca992eeb8e26940c25959017a9250c0768.zip |
lib: fix g++ warning in map_common.
* eval.c (map_common): use the all_zero_init macro, defined
differently for C and C++ for initializing a struct to all
zero.
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5804,7 +5804,7 @@ static val map_common(val self, val fun, varg lists, chk_malloc(argc * sizeof *iter_array), alloca(argc * sizeof *iter_array))); val buf = if2(over_limit, make_owned_buf(one, coerce(mem_t *, iter_array))); - seq_build_t out = { 0 }; + seq_build_t out = all_zero_init; args_decl(args_fun, max(argc, ARGS_MIN)); if (collect_fn != 0) |