summaryrefslogtreecommitdiffstats
path: root/include/c.h
diff options
context:
space:
mode:
authorKarel Zak2014-12-04 13:06:03 +0100
committerKarel Zak2014-12-04 13:06:03 +0100
commit764b697c56660d3d7207b985ff6b0730df387954 (patch)
tree5d84b3f1204730c9f299f046eb87df215cc264e5 /include/c.h
parentlibfdisk: remove 'end' from struct fdisk_partition (diff)
downloadkernel-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/c.h')
-rw-r--r--include/c.h2
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