Skip to content

Commit

Permalink
bfcp: fix win32 warning (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers authored Feb 25, 2022
1 parent dc3f658 commit 3310b13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bfcp/attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ static int attr_encode(struct mbuf *mb, bool mand, enum bfcp_attrib type,
const struct bfcp_supprim *supprim = v;
const enum bfcp_priority *priority = v;
const uint16_t *u16 = v;
size_t start, len, i;
size_t start, i;
uint8_t len;
int err;

start = mb->pos;
Expand Down Expand Up @@ -124,7 +125,7 @@ static int attr_encode(struct mbuf *mb, bool mand, enum bfcp_attrib type,
}

/* header */
len = mb->pos - start;
len = (uint8_t)(mb->pos - start);

mb->pos = start;
err |= mbuf_write_u8(mb, (type<<1) | (mand ? 1 : 0));
Expand Down

0 comments on commit 3310b13

Please sign in to comment.