aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2022-01-08 18:44:59 +0100
committerAndrzej Janik <[email protected]>2022-01-08 18:44:59 +0100
commit6f76c8b34c2132b98491d60b5120d60fb2fc80e1 (patch)
treeb4596e153a467a3108837552edebb3203562d3ed
parent2e568716433fd0c00778dd342654ca59936f5d13 (diff)
downloadZLUDA-6f76c8b34c2132b98491d60b5120d60fb2fc80e1.tar.gz
ZLUDA-6f76c8b34c2132b98491d60b5120d60fb2fc80e1.zip
Fix crash when printing arrays
-rw-r--r--zluda_dump/src/format.rs2
1 files changed, 1 insertions, 1 deletions
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<T: CudaDisplay, const N: usize> 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", ")?;
}