1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-15 11:45:47 +00:00

Fix defects

This commit is contained in:
Carles Fernandez 2019-08-17 11:33:38 +02:00
parent 874c92351c
commit eef3eabbd3
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -133,9 +133,9 @@ INTEGER__dump(asn_TYPE_descriptor_t *td, const INTEGER_t *st, asn_app_consume_by
char *scr;
if(buf == buf_end) {
accum = 0;
accum = 0LL;
} else {
accum = (*buf & 0x80) ? -1 : 0;
accum = (*buf & 0x80) ? -1LL : 0LL;
for(; buf < buf_end; buf++)
accum = (accum * 256) | *buf;
}
@ -160,7 +160,7 @@ INTEGER__dump(asn_TYPE_descriptor_t *td, const INTEGER_t *st, asn_app_consume_by
scr = scratch;
ret = snprintf(scr, scrsize,
(specs && specs->field_unsigned)
?"%lld":"%lld", accum);
?"%llu":"%lld", accum);
}
assert(ret > 0 && (size_t)ret < scrsize);
return (cb(scr, ret, app_key) < 0) ? -1 : ret;