diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-05-07 10:02:58 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-05-07 10:02:58 +0000 |
commit | 525118dfe8bb3f6b874db7920dc0ee04eede0585 (patch) | |
tree | c2f57a84561e427c09ea7a248f438c187a004c58 /src/htslib.c | |
parent | aad35562b3293c792e858b36c3ca7d1ab2f386c6 (diff) |
Charset fixes
Diffstat (limited to 'src/htslib.c')
-rw-r--r-- | src/htslib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/htslib.c b/src/htslib.c index 1c1e54e..feba33a 100644 --- a/src/htslib.c +++ b/src/htslib.c @@ -3032,13 +3032,13 @@ typedef struct { // 0 : no // 1 : yes // -1: don't know -int is_unicode_utf8(unsigned char* buffer, unsigned int size) { +int is_unicode_utf8(const unsigned char* buffer, size_t size) { t_auto_seq seq; - unsigned int i; - int is_utf=-1; + size_t i; + int is_utf = -1; seq.pos=0; - for(i=0 ; i < size ; i++) { + for(i = 0 ; i < size ; i++) { unsigned int ok=0; unsigned int inseq=0; unsigned int err=0; |