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 ...@@ -548,7 +548,7 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *oid, void *arcs, unsigned int ar
arcs, arc_type_size, 0); arcs, arc_type_size, 0);
} }
assert((bp - buf) <= size); assert((unsigned)(bp - buf) <= size);
/* /*
* Replace buffer. * Replace buffer.
......
...@@ -100,8 +100,8 @@ int ...@@ -100,8 +100,8 @@ int
RELATIVE_OID_set_arcs(RELATIVE_OID_t *roid, void *arcs, unsigned int arc_type_size, unsigned int arcs_slots) { RELATIVE_OID_set_arcs(RELATIVE_OID_t *roid, void *arcs, unsigned int arc_type_size, unsigned int arcs_slots) {
uint8_t *buf; uint8_t *buf;
uint8_t *bp; uint8_t *bp;
int size; unsigned int size;
int i; unsigned int i;
if(roid == NULL || arcs == NULL || arc_type_size < 1) { if(roid == NULL || arcs == NULL || arc_type_size < 1) {
errno = EINVAL; errno = EINVAL;
...@@ -126,7 +126,7 @@ RELATIVE_OID_set_arcs(RELATIVE_OID_t *roid, void *arcs, unsigned int arc_type_si ...@@ -126,7 +126,7 @@ RELATIVE_OID_set_arcs(RELATIVE_OID_t *roid, void *arcs, unsigned int arc_type_si
arcs, arc_type_size, 0); arcs, arc_type_size, 0);
} }
assert((bp - buf) <= size); assert((unsigned)(bp - buf) <= size);
/* /*
* Replace buffer. * 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