mirror of https://gerrit.osmocom.org/asn1c
fix type
This commit is contained in:
parent
ace43a3fcc
commit
2d824a6976
|
@ -370,7 +370,7 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *st, const asn_oid_arc_t *arcs,
|
|||
size_t arc_slots) {
|
||||
uint8_t *buf;
|
||||
uint8_t *bp;
|
||||
size_t wrote;
|
||||
ssize_t wrote;
|
||||
asn_oid_arc_t arc0;
|
||||
asn_oid_arc_t arc1;
|
||||
size_t size;
|
||||
|
@ -426,7 +426,7 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *st, const asn_oid_arc_t *arcs,
|
|||
FREEMEM(buf);
|
||||
return -1;
|
||||
}
|
||||
assert(wrote <= size);
|
||||
assert((size_t)wrote <= size);
|
||||
bp += wrote;
|
||||
size -= wrote;
|
||||
|
||||
|
@ -436,14 +436,11 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *st, const asn_oid_arc_t *arcs,
|
|||
FREEMEM(buf);
|
||||
return -1;
|
||||
}
|
||||
assert(wrote <= size);
|
||||
assert((size_t)wrote <= size);
|
||||
bp += wrote;
|
||||
size -= wrote;
|
||||
assert(wrote <= size);
|
||||
}
|
||||
|
||||
assert(size >= 0);
|
||||
|
||||
/*
|
||||
* Replace buffer.
|
||||
*/
|
||||
|
|
|
@ -257,8 +257,6 @@ RELATIVE_OID_set_arcs(RELATIVE_OID_t *st, const asn_oid_arc_t *arcs,
|
|||
size -= wrote;
|
||||
}
|
||||
|
||||
assert(size >= 0);
|
||||
|
||||
/*
|
||||
* Replace buffer.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue