* setup.py: remove extra linkargs for win32

* tdm_termite.cpp: explicit cast to unsigned int
This commit is contained in:
Mario Fink 2021-06-11 09:24:44 +02:00
parent d2453427c7
commit 35c5ac9e75
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ if sys.platform == "linux" or sys.platform == "darwin" :
lnkargs = ['-std=c++17','-Wno-unused-variable']
elif sys.platform == "win32" :
cmpargs = ['/EHsc','/std:c++17']
lnkargs = ['/EHsc','/std:c++17']
lnkargs = []
else :
raise RuntimeError("unknown platform")

View File

@ -852,7 +852,7 @@ void tdm_termite::print_group(std::string &id, const char* filename, bool includ
for ( std::string chn: chngrp.channels_ )
{
std::vector<tdmdatatype> chndat = this->get_channel(chn);
if ( chndat.size() > maxrows ) maxrows = chndat.size();
if ( chndat.size() > maxrows ) maxrows = (unsigned int)chndat.size();
allchns.push_back(chndat);
}

View File

@ -9,7 +9,7 @@ if sys.platform == "linux" or sys.platform == "darwin" :
lnkargs = ['-std=c++17','-Wno-unused-variable']
elif sys.platform == "win32" :
cmpargs = ['/EHsc','/std:c++17']
lnkargs = ['/EHsc','/std:c++17']
lnkargs = []
else :
raise RuntimeError("unknown platform")