clang fixes

LT1AB
piyushrpt 2019-05-27 22:11:32 -07:00
parent d4992db94b
commit 22c69a4ec0
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ GDALAccessor::getStream (char * dataLine, int & numEl)
int ypos0 = LastPosition / LineWidth;
int xpos0 = LastPosition % LineWidth;
LastPosition += numEl;
int ypos1 = (LastPosition - 1) / LineWidth;
int ypos1 = (LastPosition - std::streampos(1)) / LineWidth;
if (LastPosition * SizeV >= FileSize)
{
numEl -= LastPosition % LineWidth;

View File

@ -145,7 +145,7 @@ PyObject * cpxlooks_C(PyObject* self, PyObject* args)
}
for(int j = 0; j < na; ++j)
{
b[j] = b[j] + a[j]*pow(pha,j+1)*pow(phd,lineToGet);
b[j] = b[j] + a[j]*pow(pha,j+1.0f)*pow(phd,lineToGet*1.0f);
}
}
if(eofReached)