mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-12 10:48:53 +03:00
Fix crash when printing arrays
This commit is contained in:
@ -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", ")?;
|
||||
}
|
||||
|
Reference in New Issue
Block a user