diff --git a/device_mapper/libdm-report.c b/device_mapper/libdm-report.c index b6d7569fe..175ca6fc9 100644 --- a/device_mapper/libdm-report.c +++ b/device_mapper/libdm-report.c @@ -4371,9 +4371,10 @@ static int _row_compare(const void *a, const void *b) for (cnt = 0; cnt < rowa->rh->keys_count; cnt++) { sfa = (*rowa->sort_fields)[cnt]; sfb = (*rowb->sort_fields)[cnt]; - if ((sfa->props->flags & DM_REPORT_FIELD_TYPE_NUMBER) || - (sfa->props->flags & DM_REPORT_FIELD_TYPE_SIZE) || - (sfa->props->flags & DM_REPORT_FIELD_TYPE_TIME)) { + if (sfa->props->flags & + ((DM_REPORT_FIELD_TYPE_NUMBER) | + (DM_REPORT_FIELD_TYPE_SIZE) | + (DM_REPORT_FIELD_TYPE_TIME))) { const uint64_t numa = *(const uint64_t *) sfa->sort_value; const uint64_t numb = diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index b4d59946b..3cf50dba6 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -4369,9 +4369,10 @@ static int _row_compare(const void *a, const void *b) for (cnt = 0; cnt < rowa->rh->keys_count; cnt++) { sfa = (*rowa->sort_fields)[cnt]; sfb = (*rowb->sort_fields)[cnt]; - if ((sfa->props->flags & DM_REPORT_FIELD_TYPE_NUMBER) || - (sfa->props->flags & DM_REPORT_FIELD_TYPE_SIZE) || - (sfa->props->flags & DM_REPORT_FIELD_TYPE_TIME)) { + if (sfa->props->flags & + ((DM_REPORT_FIELD_TYPE_NUMBER) | + (DM_REPORT_FIELD_TYPE_SIZE) | + (DM_REPORT_FIELD_TYPE_TIME))) { const uint64_t numa = *(const uint64_t *) sfa->sort_value; const uint64_t numb =