From e2914fcc18a39d9c5cb747b0d732d270869401cf Mon Sep 17 00:00:00 2001 From: Xiao-Yong Jin Date: Wed, 25 Sep 2024 14:00:39 -0500 Subject: [PATCH] bench/benchQio: fix newSeqWith --- src/bench/benchQio.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bench/benchQio.nim b/src/bench/benchQio.nim index 790c837c..feabf4a3 100644 --- a/src/bench/benchQio.nim +++ b/src/bench/benchQio.nim @@ -27,8 +27,8 @@ proc test(lat: seq[int]) = var rs = newRNGField(RngMilc6, lo, intParam("seed", 987654321).uint64) #var r0 = lo.RealS() #var r1 = lo.RealS() - var r0 = newSeqWith[type lo.ColorMatrixS](4, lo.ColorMatrixS) - var r1 = newSeqWith[type lo.ColorMatrixS](4, lo.ColorMatrixS) + var r0 = newSeqWith(4, lo.ColorMatrixS) + var r1 = newSeqWith(4, lo.ColorMatrixS) var fn = stringParam("fn", "testqio.lat") let bytes = r0.len * r0[0].numNumbers * sizeof(r0[0][0].numberType) byts.add bytes