Fix compiler warning: comparison between signed and unsigned integer expressions
Signed-off-by: brian <brian@brutex.de>master
parent
7451979a3c
commit
c58038bf06
|
@ -610,7 +610,7 @@ namespace sd {
|
||||||
state[0] = seedConv(this->seed);
|
state[0] = seedConv(this->seed);
|
||||||
state[1] = seedConv(this->seed * 119 + 3);
|
state[1] = seedConv(this->seed * 119 + 3);
|
||||||
|
|
||||||
int fd = 3 + 3;
|
//int fd = 3 + 3;
|
||||||
|
|
||||||
for (Nd4jLong i = 0; i < limit; i++) {
|
for (Nd4jLong i = 0; i < limit; i++) {
|
||||||
buffer[i] = next64();
|
buffer[i] = next64();
|
||||||
|
|
|
@ -1113,7 +1113,7 @@ static Nd4jPointer _numpyHeaderForNd4j(Nd4jPointer data,const Nd4jPointer shapeB
|
||||||
auto npHeader = cnpy::createNpyHeader<T>(data,npShape,rank,wordSize);
|
auto npHeader = cnpy::createNpyHeader<T>(data,npShape,rank,wordSize);
|
||||||
char *ret = new char[npHeader.size() + 1];
|
char *ret = new char[npHeader.size() + 1];
|
||||||
int count = 0;
|
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];
|
ret[count] = npHeader[i];
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue