[lttng-dev] [BABELTRACE PATCH] Fix: wrong type in bt_ctf_get_uint64/int64

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Tue Aug 7 15:42:49 EDT 2012


* Julien Desfossez (jdesfossez at efficios.com) wrote:
> Signed-off-by: Julien Desfossez <jdesfossez at efficios.com>

merged, thanks to you both!

Mathieu

> ---
>  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 9693413..a8b08f6 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);
> -- 
> 1.7.10.4
> 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list