mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 17:40:40 +02:00
fixed comparisons to build with clang
This commit is contained in:
parent
bf0e0ac601
commit
0e120330f4
@ -5386,7 +5386,7 @@ int multiSlsDetector::setCTBPattern(std::string fname) {
|
||||
uint64_t word;
|
||||
int addr = 0;
|
||||
FILE* fd = fopen(fname.c_str(), "r");
|
||||
if (fd > 0) {
|
||||
if (fd) {
|
||||
while (fread(&word, sizeof(word), 1, fd)) {
|
||||
for (unsigned int idet = 0; idet < detectors.size(); ++idet)
|
||||
detectors[idet]->setCTBWord(addr, word);
|
||||
|
@ -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;
|
||||
|
@ -103,7 +103,7 @@ int postProcessingFuncs::addFrame(double *data, double *pos, double *I0, double
|
||||
|
||||
|
||||
|
||||
if (I0>0) {
|
||||
if (I0 != NULL) {
|
||||
i0=*I0;
|
||||
totalI0+=i0;
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user