Commit 34b2a93f authored by Lev Walkin's avatar Lev Walkin

signedness fixed

parent 0787ff0e
......@@ -548,7 +548,7 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *oid, void *arcs, unsigned int ar
arcs, arc_type_size, 0);
}
assert((bp - buf) <= size);
assert((unsigned)(bp - buf) <= size);
/*
* Replace buffer.
......
......@@ -100,8 +100,8 @@ int
RELATIVE_OID_set_arcs(RELATIVE_OID_t *roid, void *arcs, unsigned int arc_type_size, unsigned int arcs_slots) {
uint8_t *buf;
uint8_t *bp;
int size;
int i;
unsigned int size;
unsigned int i;
if(roid == NULL || arcs == NULL || arc_type_size < 1) {
errno = EINVAL;
......@@ -126,7 +126,7 @@ RELATIVE_OID_set_arcs(RELATIVE_OID_t *roid, void *arcs, unsigned int arc_type_si
arcs, arc_type_size, 0);
}
assert((bp - buf) <= size);
assert((unsigned)(bp - buf) <= size);
/*
* Replace buffer.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment