diff --git a/src/BEDstruct.c b/src/BEDstruct.c index 2e3b613..8082d90 100644 --- a/src/BEDstruct.c +++ b/src/BEDstruct.c @@ -504,7 +504,7 @@ void CalculateFPKM(BAMFILES *bhead, PEAK *head) { float kilo_length = 0; while (bcurr != NULL) { - pm = bcurr->read_coverage / 1000000; + pm = (float) bcurr->read_coverage / 1000000; curr = head; while (curr != NULL) { @@ -651,4 +651,4 @@ void WriteMultiCovsNormalized(BAMFILES *bhead, PEAK *head, int no_of_samples, ch fclose(handler); -} \ No newline at end of file +}