[med-svn] [htslib] 07/10: Return type of bgzf_getc is int, not char

Charles Plessy plessy at moszumanska.debian.org
Sun Oct 5 00:54:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

plessy pushed a commit to branch debian/unstable
in repository htslib.

commit 14a4a81f67a122f7bb2e87e5fa070aa270b0aec5
Author: Petr Danecek <pd3 at sanger.ac.uk>
Date:   Fri Oct 3 08:14:35 2014 +0100

    Return type of bgzf_getc is int, not char
---
 faidx.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/faidx.c b/faidx.c
index 75ec84c..c043e63 100644
--- a/faidx.c
+++ b/faidx.c
@@ -74,7 +74,8 @@ static inline void fai_insert_index(faidx_t *idx, const char *name, int len, int
 
 faidx_t *fai_build_core(BGZF *bgzf)
 {
-    char c, *name;
+    char *name;
+    int c;
     int l_name, m_name;
     int line_len, line_blen, state;
     int l1, l2;
@@ -335,8 +336,8 @@ faidx_t *fai_load(const char *fn)
 
 char *fai_fetch(const faidx_t *fai, const char *str, int *len)
 {
-    char *s, c;
-    int i, l, k, name_end;
+    char *s;
+    int c, i, l, k, name_end;
     khiter_t iter;
     faidx1_t val;
     khash_t(s) *h;
@@ -426,8 +427,7 @@ int faidx_seq_len(const faidx_t *fai, const char *seq)
 
 char *faidx_fetch_seq(const faidx_t *fai, const char *c_name, int p_beg_i, int p_end_i, int *len)
 {
-    int l;
-    char c;
+    int l, c;
     khiter_t iter;
     faidx1_t val;
     char *seq=NULL;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/htslib.git



More information about the debian-med-commit mailing list