Fix compiler warning: comparison between signed and unsigned integer expressions

Signed-off-by: brian <brian@brutex.de>
master
Brian Rosenberger 2022-10-04 20:16:44 +02:00
parent 7451979a3c
commit c58038bf06
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -1113,7 +1113,7 @@ static Nd4jPointer _numpyHeaderForNd4j(Nd4jPointer data,const Nd4jPointer shapeB
auto npHeader = cnpy::createNpyHeader<T>(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++;
}