Skip to contentSkip to conversation

Fix: wrong type in bt_ctf_get_uint64/int64

PATCH Mathieu Desnoyers 1 participant 1 message Aug 7, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mathieu Desnoyers

author Applied
#1 lore raw
Quoted 1 line · * Julien Desfossez ([email protected]) wrote:

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
index 9693413..a8b08f6 100644
@@ -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