fixed comparisons to build with clang

This commit is contained in:
Erik Frojdh
2019-02-08 10:16:32 +01:00
parent bf0e0ac601
commit 0e120330f4
3 changed files with 3 additions and 3 deletions

View File

@ -9563,7 +9563,7 @@ int slsDetector::setCTBPattern(string fname) {
int addr=0;
FILE *fd=fopen(fname.c_str(),"r");
if (fd>0) {
if (fd) {
while (fread(&word, sizeof(word), 1,fd)) {
setCTBWord(addr,word);
// cout << hex << addr << " " << word << dec << endl;