aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-09-27 14:57:41 +0200
committerThomas White <taw@physics.org>2017-09-27 14:57:41 +0200
commit39640b93cddf9ab9272351cc7917fc158cd4d010 (patch)
tree49cc3fbafe134b53e579864484f6c91d7679a563
parent13bf35ac9021258b12c2603485acb1e9fab80c7e (diff)
Fix check for CBF files in event enumeration
-1 means the check failed.
-rw-r--r--src/im-sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 8b7eb29c..e4851320 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -219,7 +219,7 @@ static struct filename_plus_event *get_pattern(FILE *fh, int config_basename,
if ( det->path_dim != 0 || det->dim_dim != 0 ) {
- if ( is_cbf_file(filename) ) {
+ if ( is_cbf_file(filename) == 1 ) {
ERROR("Your geometry file is for a multi-event "
"format, but this file is in CBF format.\n");
ERROR("Your geometry file probably needs to be "