mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-22 16:14:24 +00:00
Make a loop index unsigned (I forgot)
This commit is contained in:
parent
c990113d41
commit
ba45dfd61c
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ __host__ int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
// A[NY][NX]
|
// A[NY][NX]
|
||||||
DATA_TYPE** A = new DATA_TYPE*[NX] {};
|
DATA_TYPE** A = new DATA_TYPE*[NX] {};
|
||||||
for(int i = 0; i < NX; i++)
|
for(unsigned int i = 0; i < NX; i++)
|
||||||
{
|
{
|
||||||
A[i] = new DATA_TYPE[NY];
|
A[i] = new DATA_TYPE[NY];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue