From: Mathieu Desnoyers Date: Mon, 8 Apr 2013 13:15:15 +0000 (-0400) Subject: Use uint64_t for packet_map_len X-Git-Tag: v1.1.1~43 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=653906a470919038533e552142683c9edaae6744 Use uint64_t for packet_map_len packet_map_len is in bits, and we should use uint64_t to represent bits, rather than size_t. Signed-off-by: Mathieu Desnoyers --- diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 786ba6fb..4e4aabff 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -1302,10 +1302,10 @@ int create_stream_one_packet_index(struct ctf_stream_pos *pos, { struct packet_index packet_index; struct ctf_stream_declaration *stream; - int len_index; uint64_t stream_id = 0; + uint64_t packet_map_len = DEFAULT_HEADER_LEN, tmp_map_len; int first_packet = 0; - size_t packet_map_len = DEFAULT_HEADER_LEN, tmp_map_len; + int len_index; int ret; begin: