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/netToBed/netToBed.c src/hg/mouseStuff/netToBed/netToBed.c
index d8dc45a..b2fdc2f 100644
--- src/hg/mouseStuff/netToBed/netToBed.c
+++ src/hg/mouseStuff/netToBed/netToBed.c
@@ -1,25 +1,27 @@
 /* netToBed - Convert target coverage of net to a bed file.. */
 
 /* Copyright (C) 2011 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 "hash.h"
 #include "options.h"
 #include "chainNet.h"
 
+#undef BIGNUM
+#define BIGNUM 0x7fffffff	/* larger than the standard size BIGNUM */
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "netToBed - Convert target coverage of net to a bed file.\n"
   "usage:\n"
   "   netToBed in.net out.bed\n"
   "options:\n"
   "   -maxGap=N - break up at gaps of given size or more\n"
   "   -minFill=N - only include fill of given size of above.\n"
   );
 }
 
 int minFill = 0;