more clang-tidy fixes after re-running it with added settings

This commit is contained in:
Axel Kohlmeyer
2022-05-14 06:15:41 -04:00
parent 2f0baa86d6
commit d4ea5ca49e
66 changed files with 117 additions and 229 deletions

View File

@ -70,7 +70,7 @@ grdtyp *PPPMT::init(const int nlocal, const int nall, FILE *_screen,
flag=device->init(*ans,nlocal,nall);
if (flag!=0)
return nullptr;
if (sizeof(grdtyp)==sizeof(double) && device->double_precision()==false) {
if (sizeof(grdtyp)==sizeof(double) && !device->double_precision()) {
flag=-15;
return nullptr;
}
@ -374,7 +374,7 @@ void PPPMT::compile_kernels(UCL_Device &dev) {
if (_compiled)
return;
if (sizeof(grdtyp)==sizeof(double) && ucl_device->double_precision()==false)
if (sizeof(grdtyp)==sizeof(double) && !ucl_device->double_precision())
return;
std::string flags=device->compile_string();