From 135c8f9cbf47e1d1c679cbf46607a037cde5a15e Mon Sep 17 00:00:00 2001 From: Amit Margalit Date: Tue, 20 Aug 2013 09:29:02 +0300 Subject: [PATCH] Add missing call to _bt_ctf_get_decl_from_def() when calling _bt_ctf_get_int_len(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The python code that call _bt_ctf_get_int_len() fails to wrap self._d with the call to _bt_ctf_get_decl_from_def. Acked-by: Jérémie Galarneau Signed-off-by: Amit Margalit Signed-off-by: Mathieu Desnoyers --- bindings/python/babeltrace.i.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/babeltrace.i.in b/bindings/python/babeltrace.i.in index dd2daccd..16dbbbde 100644 --- a/bindings/python/babeltrace.i.in +++ b/bindings/python/babeltrace.i.in @@ -866,7 +866,7 @@ class ctf: Return the size, in bits, of an int or a negative value on error. """ - return _bt_ctf_get_int_len(self._d) + return _bt_ctf_get_int_len(_bt_ctf_get_decl_from_def(self._d)) def get_encoding(self): """ -- 2.34.1