Changeset: 8108723f7c84 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8108723f7c84
Modified Files:
        gdk/gdk_atoms.c
Branch: Mar2025
Log Message:

Simplify UUID compare.
uuid_nil should be smallest value, but it's all zeros, so it is as far
as memcmp is concerned.


diffs (14 lines):

diff --git a/gdk/gdk_atoms.c b/gdk/gdk_atoms.c
--- a/gdk/gdk_atoms.c
+++ b/gdk/gdk_atoms.c
@@ -1215,10 +1215,6 @@ static int
 UUIDcompare(const void *L, const void *R)
 {
        const uuid *l = L, *r = R;
-       if (is_uuid_nil(*r))
-               return !is_uuid_nil(*l);
-       if (is_uuid_nil(*l))
-               return -1;
        return memcmp(l->u, r->u, UUID_SIZE);
 }
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to