diff options
author | Karel Zak | 2014-12-04 13:06:03 +0100 |
---|---|---|
committer | Karel Zak | 2014-12-04 13:06:03 +0100 |
commit | 764b697c56660d3d7207b985ff6b0730df387954 (patch) | |
tree | 5d84b3f1204730c9f299f046eb87df215cc264e5 /include | |
parent | libfdisk: remove 'end' from struct fdisk_partition (diff) | |
download | kernel-qcow2-util-linux-764b697c56660d3d7207b985ff6b0730df387954.tar.gz kernel-qcow2-util-linux-764b697c56660d3d7207b985ff6b0730df387954.tar.xz kernel-qcow2-util-linux-764b697c56660d3d7207b985ff6b0730df387954.zip |
libfdisk: fix bug in cmp_numbers() and partitions sorting
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1170191
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/c.h b/include/c.h index 142583956..068e2676a 100644 --- a/include/c.h +++ b/include/c.h @@ -112,7 +112,7 @@ __typeof__(x) _a = (x); \ __typeof__(y) _b = (y); \ (void) (&_a == &_b); \ - a == b ? 0 : a > b ? 1 : -1; }) + _a == _b ? 0 : _a > _b ? 1 : -1; }) #endif #ifndef offsetof |