mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-07-31 13:28:38 +00:00
Fix crash when printing arrays
This commit is contained in:
parent
2e56871643
commit
6f76c8b34c
1 changed files with 1 additions and 1 deletions
|
@ -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", ")?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue