Fix: wrong type in bt_ctf_get_uint64/int64
authorJulien Desfossez <jdesfossez@efficios.com>
Tue, 7 Aug 2012 19:42:15 +0000 (15:42 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Aug 2012 19:42:15 +0000 (15:42 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/events.c

index 969341327809f08d000e1bff674045f004c1b4db..a8b08f657680ec4ddfffe282726ff8ac2de7a988 100644 (file)
@@ -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);
This page took 0.032444 seconds and 4 git commands to generate.