diff options
author | kmu <kmu@hdfgroup.org> | 2019-12-11 16:44:56 (GMT) |
---|---|---|
committer | kmu <kmu@hdfgroup.org> | 2019-12-11 16:44:56 (GMT) |
commit | 45a62b2d46523c15a7d2bc7f52db2b756b40df26 (patch) | |
tree | 9be754803238d1c98cde34ca9d23b3b6e3e7651b /tools/lib/h5diff.c | |
parent | a00d71b2e26c06a299ac92552b7887ca017fd4d3 (diff) | |
download | hdf5-45a62b2d46523c15a7d2bc7f52db2b756b40df26.zip hdf5-45a62b2d46523c15a7d2bc7f52db2b756b40df26.tar.gz hdf5-45a62b2d46523c15a7d2bc7f52db2b756b40df26.tar.bz2 |
fix and address comments
Diffstat (limited to 'tools/lib/h5diff.c')
-rw-r--r-- | tools/lib/h5diff.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c index 5acdde8..d0371c7 100644 --- a/tools/lib/h5diff.c +++ b/tools/lib/h5diff.c @@ -907,15 +907,9 @@ h5diff(const char *fname1, parallel_print("file1 file2\n"); parallel_print("---------------------------------------\n"); for(u = 0; u < match_list->nobjs; u++) { - char c1, c2; - if (match_list->objs[u].flags[0]) - c1 = 'x'; - else - c1 = ' '; - if (match_list->objs[u].flags[1]) - c2 = 'x'; - else - c2 = ' '; + int c1, c2; + c1 = (match_list->objs[u].flags[0]) ? 'x' : ' '; + c2 = (match_list->objs[u].flags[1]) ? 'x' : ' '; parallel_print("%5c %6c %-15s\n", c1, c2, match_list->objs[u].name); } /* end for */ parallel_print ("\n"); |