584b7af6bcac17cc116ca2c4801e60a149d49c2c
hiram
  Wed Aug 7 15:23:41 2024 -0700
BIGNUM needs to be a bit larger for chain/net processing on sequences over 1 Gb refs #34248

diff --git src/hg/mouseStuff/chainNet/chainNet.c src/hg/mouseStuff/chainNet/chainNet.c
index 8b56906..d4707bd 100644
--- src/hg/mouseStuff/chainNet/chainNet.c
+++ src/hg/mouseStuff/chainNet/chainNet.c
@@ -1,29 +1,31 @@
 /* chainNet - Make alignment nets out of chains. */
 
 /* Copyright (C) 2014 The Regents of the University of California 
  * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
 #include "common.h"
 #include "linefile.h"
 #include "localmem.h"
 #include "hash.h"
 #include "options.h"
 #include "dnautil.h"
 #include "rbTree.h"
 #include "chainBlock.h"
 #include "portable.h"
 
+#undef BIGNUM
+#define BIGNUM 0x7fffffff	/* larger than the standard size BIGNUM */
 
 int minSpace = 25;	/* Minimum gap size to fill. */
 int minFill;		/* Minimum fill to record. */
 double minScore = 2000;	/* Minimum chain score to look at. */
 boolean inclHap = FALSE; /* include haplotype pseudochromosome queries */
 
 /* command line option specifications */
 static struct optionSpec optionSpecs[] = {
     {"minSpace", OPTION_INT},
     {"minFill", OPTION_INT},
     {"minScore", OPTION_DOUBLE},
     {"inclHap", OPTION_BOOLEAN},
     {NULL, 0}
 };