Commit df231950 authored by ace20022's avatar ace20022 Committed by Petri Hintukainen

The number of bytes used by fixed-length character fields is stored as Uint8 (ECMA 1/7.2.12).

parent 34268210
......@@ -37,7 +37,7 @@
*/
/* fixed-length dstring, ECMA 1/7.2.12 */
static size_t _decode_dstring(const uint8_t *p, size_t field_length, uint8_t *str)
static uint8_t _decode_dstring(const uint8_t *p, size_t field_length, uint8_t *str)
{
size_t length;
......@@ -51,7 +51,7 @@ static size_t _decode_dstring(const uint8_t *p, size_t field_length, uint8_t *st
length = field_length;
}
memcpy(str, p, length);
return length;
return (uint8_t)length;
}
/* Extent Descriptor (ECMA 167, 3/7.1) */
......
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