mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-20 00:14:45 +00:00
Fix small regression
This commit is contained in:
parent
2b3ecc99e3
commit
28a0968294
1 changed files with 4 additions and 1 deletions
|
@ -1345,7 +1345,10 @@ VariableArrayOrPointer<T>: (Option<u32>, T, &'input str, ast::ArrayOrPointer) =
|
|||
if dims.len() > 1 && dims.contains(&0) {
|
||||
return Err(ParseError::User { error: ast::PtxError::ZeroDimensionArray })
|
||||
}
|
||||
ast::ArrayOrPointer::Pointer
|
||||
match &*dims {
|
||||
[0] => ast::ArrayOrPointer::Pointer,
|
||||
_ => ast::ArrayOrPointer::Array { dimensions: dims, init: Vec::new() }
|
||||
}
|
||||
}
|
||||
};
|
||||
Ok((align, typ, name, array_init))
|
||||
|
|
Loading…
Add table
Reference in a new issue