From 6f76c8b34c2132b98491d60b5120d60fb2fc80e1 Mon Sep 17 00:00:00 2001 From: Andrzej Janik Date: Sat, 8 Jan 2022 18:44:59 +0100 Subject: Fix crash when printing arrays --- zluda_dump/src/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zluda_dump/src/format.rs b/zluda_dump/src/format.rs index a24111a..99487f2 100644 --- a/zluda_dump/src/format.rs +++ b/zluda_dump/src/format.rs @@ -536,7 +536,7 @@ impl CudaDisplay for [T; N] { ) -> std::io::Result<()> { writer.write_all(b"[")?; for i in 0..N { - CudaDisplay::write(self, "", 0, writer)?; + CudaDisplay::write(&self[i], "", 0, writer)?; if i != N - 1 { writer.write_all(b", ")?; } -- cgit v1.2.3