1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-22 08:04:25 +00:00

Make a loop index unsigned (I forgot)

This commit is contained in:
Steffo 2022-11-29 17:26:36 +01:00 committed by GitHub
parent c990113d41
commit ba45dfd61c
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ __host__ int main(int argc, char **argv)
{
// A[NY][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];
}