From 77a5fbd20f9385f4892239cca7f8c00934e93086 Mon Sep 17 00:00:00 2001 From: James Osborn Date: Thu, 3 Oct 2024 17:06:43 -0500 Subject: [PATCH] fix use of array in macro for Nim devel --- src/comms/commsUtils.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/comms/commsUtils.nim b/src/comms/commsUtils.nim index 7e05271..bb9a423 100644 --- a/src/comms/commsUtils.nim +++ b/src/comms/commsUtils.nim @@ -180,16 +180,18 @@ macro rankSumN*(comm:Comm, a:varargs[typed]):auto = i0 = i break if i0<0: + let b = newNimNode(nnkBracket) var s = newNimNode(nnkStmtList) let t = ident("t") for i in 0..