b628620dca257848dc6e9b18ea8e09585ecaf216
hiram
  Tue Jun 9 00:07:17 2026 -0700
hgcentralTidy also needs the 64 bit sessionDb and userDb IDs refs #33554

diff --git src/lib/common.c src/lib/common.c
index 16f4f1317ef..74fb590e039 100644
--- src/lib/common.c
+++ src/lib/common.c
@@ -490,30 +490,38 @@
 for (i=list;i;i=i->next)
     if (i->val == target)
 	return i;
 return NULL;
 }
 
 struct slUnsigned *slUnsignedNew(unsigned x)
 /* Return a new int. */
 {
 struct slUnsigned *a;
 AllocVar(a);
 a->val = x;
 return a;
 }
 
+struct slUnsignedLong *slUnsignedLongNew(unsigned long x)
+/* Return a new int. */
+{
+struct slUnsignedLong *a;
+AllocVar(a);
+a->val = x;
+return a;
+}
 
 static int doubleCmp(const void *va, const void *vb)
 /* Compare function to sort array of doubles. */
 {
 const double *a = va;
 const double *b = vb;
 double diff = *a - *b;
 if (diff < 0)
     return -1;
 else if (diff > 0)
     return 1;
 else
     return 0;
 }