From 7362ea278bd34753b7e7a32578ca3f9bf6d31f24 Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 4 Oct 2022 20:16:44 +0200 Subject: [PATCH] Fix compiler warning: comparison between signed and unsigned integer expressions Signed-off-by: brian --- .../src/main/cpp/blas/helpers/helper_generator.h | 2 +- .../cavis-native-lib/src/main/cpp/blas/legacy/NativeOps.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/helper_generator.h b/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/helper_generator.h index 6fd265f11..098bcf7d7 100644 --- a/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/helper_generator.h +++ b/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/helper_generator.h @@ -610,7 +610,7 @@ namespace sd { state[0] = seedConv(this->seed); state[1] = seedConv(this->seed * 119 + 3); - int fd = 3 + 3; + //int fd = 3 + 3; for (Nd4jLong i = 0; i < limit; i++) { buffer[i] = next64(); diff --git a/cavis-native/cavis-native-lib/src/main/cpp/blas/legacy/NativeOps.h b/cavis-native/cavis-native-lib/src/main/cpp/blas/legacy/NativeOps.h index 6bc1f4fe1..f32182e54 100644 --- a/cavis-native/cavis-native-lib/src/main/cpp/blas/legacy/NativeOps.h +++ b/cavis-native/cavis-native-lib/src/main/cpp/blas/legacy/NativeOps.h @@ -1113,7 +1113,7 @@ static Nd4jPointer _numpyHeaderForNd4j(Nd4jPointer data,const Nd4jPointer shapeB auto npHeader = cnpy::createNpyHeader(data,npShape,rank,wordSize); char *ret = new char[npHeader.size() + 1]; int count = 0; - for(int i = 0; i < npHeader.size(); i++) { + for(int i = 0; (size_t)i < npHeader.size(); i++) { ret[count] = npHeader[i]; count++; }