Merge pull request #42 from piyushrpt/clang

Enable building with clang
LT1AB
piyushrpt 2019-06-05 09:22:38 -07:00 committed by GitHub
commit c5e086f16c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 ypos0 = LastPosition / LineWidth;
int xpos0 = LastPosition % LineWidth; int xpos0 = LastPosition % LineWidth;
LastPosition += numEl; LastPosition += numEl;
int ypos1 = (LastPosition - 1) / LineWidth; int ypos1 = (LastPosition - std::streampos(1)) / LineWidth;
if (LastPosition * SizeV >= FileSize) if (LastPosition * SizeV >= FileSize)
{ {
numEl -= LastPosition % LineWidth; numEl -= LastPosition % LineWidth;

View File

@ -145,7 +145,7 @@ PyObject * cpxlooks_C(PyObject* self, PyObject* args)
} }
for(int j = 0; j < na; ++j) 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) if(eofReached)