mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-20 00:19:20 +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<()> {
|
) -> std::io::Result<()> {
|
||||||
writer.write_all(b"[")?;
|
writer.write_all(b"[")?;
|
||||||
for i in 0..N {
|
for i in 0..N {
|
||||||
CudaDisplay::write(self, "", 0, writer)?;
|
CudaDisplay::write(&self[i], "", 0, writer)?;
|
||||||
if i != N - 1 {
|
if i != N - 1 {
|
||||||
writer.write_all(b", ")?;
|
writer.write_all(b", ")?;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user