summaryrefslogtreecommitdiff
path: root/src/htslib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/htslib.c')
-rw-r--r--src/htslib.c8
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;