From 63dd3817d2f75681ece99d683e4944e66e4153a2 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Tue, 7 Aug 2012 15:42:15 -0400 Subject: [PATCH] Fix: wrong type in bt_ctf_get_uint64/int64 Signed-off-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers --- formats/ctf/events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/formats/ctf/events.c b/formats/ctf/events.c index 96934132..a8b08f65 100644 --- a/formats/ctf/events.c +++ b/formats/ctf/events.c @@ -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); -- 2.34.1