Commit 2d824a69 authored by Lev Walkin's avatar Lev Walkin

fix type

parent ace43a3f
......@@ -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.
*/
......
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