Fix: wrong type in bt_ctf_get_uint64/int64
A message that is not in the archive (sent off-list or not yet received): [email protected]
Mathieu Desnoyers
AppliedQuoted 1 line · * Julien Desfossez ([email protected]) wrote:
Signed-off-by Julien Desfossez <[email protected]>
merged, thanks to you both!
Mathieu
Quoted 29 lines
--- formats/ctf/events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)formats/ctf/events.c +2
-2@@ -407,7 +407,7 @@ int bt_ctf_get_array_len(const struct definition *field)uint64_t bt_ctf_get_uint64 (const struct definition *field) { -unsigned int ret =0 ; +uint64_t ret =0 ;if (field &&bt_ctf_field_type (field) ==CTF_TYPE_INTEGER ) ret =get_unsigned_int (field);@@ -419,7 +419,7 @@ uint64_t bt_ctf_get_uint64(const struct definition *field)int64_t bt_ctf_get_int64 (const struct definition *field) { -int ret =0 ; +int64_t ret =0 ;if (field &&bt_ctf_field_type (field) ==CTF_TYPE_INTEGER ) ret =get_signed_int (field);Signature · 1 line
1.7.10.4
Signature · 4 lines
Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com