File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ double ran_normal()
174174 }
175175}
176176
177- void unreachable (char * message ) {
177+ void unreachable_exit (char * message ) {
178178 fprintf (stderr , "\n[dwgsim_core] Error: %s\n" , message );
179179 exit (1 );
180180}
@@ -713,7 +713,7 @@ void dwgsim_core(dwgsim_opt_t * opt)
713713 case 0 : strand [0 ] = (drand48 () < 0.5 ) ? 1 : 0 ; break ;
714714 case 1 : strand [0 ] = 0 ; break ;
715715 case 2 : strand [0 ] = 1 ; break ;
716- default : unreachable ("read strand was not between 0-2" );
716+ default : unreachable_exit ("read strand was not between 0-2" );
717717 }
718718
719719 // set read two's strand
@@ -723,12 +723,12 @@ void dwgsim_core(dwgsim_opt_t * opt)
723723 case ILLUMINA : strand [1 ] = 1 - strand [0 ]; break ; // paired end for Illumina (opposite strand)
724724 case SOLID :
725725 case IONTORRENT : strand [1 ] = strand [0 ]; break ; // mate pair for SOLiD and IonTorrent (same strand)
726- default : unreachable ("data type was not between 0-2" );
726+ default : unreachable_exit ("data type was not between 0-2" );
727727 }
728728 break ;
729729 case 1 : strand [1 ] = strand [0 ]; break ; // mate pair (same strand)
730730 case 2 : strand [1 ] = 1 - strand [0 ]; break ; // paired end (opposite strand)
731- default : unreachable ("strandedness was not between 0-2" );
731+ default : unreachable_exit ("strandedness was not between 0-2" );
732732 }
733733
734734 // generate the reads in base space
You can’t perform that action at this time.
0 commit comments