Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcf.h: Remove const specifiers that are not honoured #274

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions htslib/vcf.h
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ static inline void bcf_enc_int1(kstring_t *s, int32_t x)
}
}

static inline int32_t bcf_dec_int1(const uint8_t *p, int type, uint8_t **q)
static inline int32_t bcf_dec_int1(uint8_t *p, int type, uint8_t **q)
{
if (type == BCF_BT_INT8) {
*q = (uint8_t*)p + 1;
Expand All @@ -888,12 +888,12 @@ static inline int32_t bcf_dec_int1(const uint8_t *p, int type, uint8_t **q)
}
}

static inline int32_t bcf_dec_typed_int1(const uint8_t *p, uint8_t **q)
static inline int32_t bcf_dec_typed_int1(uint8_t *p, uint8_t **q)
{
return bcf_dec_int1(p + 1, *p&0xf, q);
}

static inline int32_t bcf_dec_size(const uint8_t *p, uint8_t **q, int *type)
static inline int32_t bcf_dec_size(uint8_t *p, uint8_t **q, int *type)
{
*type = *p & 0xf;
if (*p>>4 != 15) {
Expand Down