5e00e2102bfe66842560ca466d4b2fe6b656790c
kent
  Fri Jan 24 20:09:33 2014 -0800
Adding slUnsigned to our basic listy types like slInt...
diff --git src/lib/common.c src/lib/common.c
index b454b46..94c3846 100644
--- src/lib/common.c
+++ src/lib/common.c
@@ -429,30 +429,39 @@
 const struct slInt *a = *((struct slInt **)va);
 const struct slInt *b = *((struct slInt **)vb);
 return b->val - a->val;
 }
 
 struct slInt * slIntFind(struct slInt *list, int target)
 /* Find target in slInt list or return NULL */
 {
 struct slInt *i;
 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;
+}
+
 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;
 }
 
 void doubleSort(int count, double *array)