From a1e12106ce81eafacd5fca74bb46dd90e0277993 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 12 Nov 2022 13:45:52 +0200 Subject: [PATCH] use FILL_TO for more compact edge-case handling --- src/builtins/group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/group.c b/src/builtins/group.c index a8455934..aaec198f 100644 --- a/src/builtins/group.c +++ b/src/builtins/group.c @@ -107,7 +107,7 @@ static B group_simple(B w, B x, ur xr, usz wia, usz xia, usz* xsh, u8 we) { } // Needed to make sure wia>0 for ip[wia-1] below if (neg==xia) { - for (usz i = 0; i < ria; i++) rp[i] = inc(z); + FILL_TO(rp, el_B, 0, z, ria); goto dec_ret; } TALLOC(i32, pos, 2*ria+1); i32* len = pos+ria+1;