From ba45dfd61ca37370e35fcf8776e9e6529a339a03 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 29 Nov 2022 17:26:36 +0100 Subject: [PATCH] Make a loop index unsigned (I forgot) --- atax/atax.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atax/atax.cu b/atax/atax.cu index 7a2c6db..3c8458b 100644 --- a/atax/atax.cu +++ b/atax/atax.cu @@ -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]; }