summaryrefslogtreecommitdiff
path: root/src/common/sort.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2025-05-21 19:53:39 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2025-05-21 19:53:39 (GMT)
commit0df6ab6d81a9f8de884aa8283d5c060ab1f7067e (patch)
tree0521a6f5ca3c6720349c358224ceabc5868d70d3 /src/common/sort.h
parent8dbf9b344bb90dedbd42f93c67d28d76944dccbb (diff)
Improve sized binary comparison.
Diffstat (limited to 'src/common/sort.h')
-rw-r--r--src/common/sort.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/sort.h b/src/common/sort.h
index 39a6f33..27e3739 100644
--- a/src/common/sort.h
+++ b/src/common/sort.h
@@ -37,6 +37,9 @@ int sort_boolean(bool, bool);
/* Compare une valeur avec une autre. */
int sort_unsigned_long(unsigned long, unsigned long);
+#define sort_size(v1, v2) \
+ sort_unsigned_long(v1, v2)
+
/* Compare une valeur avec une autre. */
int sort_signed_long_long(signed long long, signed long long);