aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cell_tool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cell_tool.c b/src/cell_tool.c
index 14faac3b..5e11eddb 100644
--- a/src/cell_tool.c
+++ b/src/cell_tool.c
@@ -82,7 +82,7 @@ static int comparecells(UnitCell *cell, const char *comparecell,
ERROR("Failed to load unit cell from '%s'\n", comparecell);
return 1;
}
- if ( validate_cell(cell2) ) {
+ if ( validate_cell(cell2) > 1 ) {
ERROR("Comparison cell is invalid.\n");
return 1;
}
@@ -532,7 +532,7 @@ int main(int argc, char *argv[])
STATUS("------------------> The input unit cell:\n");
cell_print(cell);
- if ( validate_cell(cell) ) {
+ if ( validate_cell(cell) > 1 ) {
ERROR("Cell is invalid.\n");
return 1;
}