381267c433f9c479842e2a84baa5da1fc54f208f
angie
  Tue Jun 8 17:39:29 2010 +0000
Use long long not long in getSnpSeqFileOffset, so it will work on 32-bit systems as well.  Contributed by John Hayward @ Wheaton.
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index 662ca2b..b90dcca 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -231,7 +231,7 @@
 #include "mdb.h"
 #include "yaleGencodeAssoc.h"
 
-static char const rcsid[] = "$Id: hgc.c,v 1.1637 2010/06/05 19:29:44 braney Exp $";
+static char const rcsid[] = "$Id: hgc.c,v 1.1638 2010/06/08 17:39:29 angie Exp $";
 static char *rootDir = "hgcData";
 
 #define LINESIZE 70  /* size of lines in comp seq feature */
@@ -13744,7 +13744,7 @@
 char **row;
 struct sqlConnection *conn = hAllocConn(database);
 struct sqlResult *sr = NULL;
-long offset = 0;
+off_t offset = 0;
 
 if (isNotEmpty(snpSeqSetting))
     {
@@ -13769,7 +13769,7 @@
 row = sqlNextRow(sr);
 if (row == NULL)
    return -1;
-offset = sqlUnsignedLong(row[0]);
+offset = sqlLongLong(row[0]);
 sqlFreeResult(&sr);
 hFreeConn(&conn);
 return offset;