From 867517794e3a3514589eb9b60fe252c65bd23269 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 9 Sep 2019 15:42:35 -0400 Subject: [PATCH] lib: fix can_seek_beginning method type cast Use the right type for the cast. It works right now because can_seek_beginning and seek_beginning have the same signature, but the can_seek_beginning signature is set to change very soon. Change-Id: I9b51c1bba43fecd1d857578d28cae5b5ff058059 Signed-off-by: Simon Marchi --- src/lib/graph/iterator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/graph/iterator.c b/src/lib/graph/iterator.c index 1030a465..81f7dd9d 100644 --- a/src/lib/graph/iterator.c +++ b/src/lib/graph/iterator.c @@ -435,7 +435,7 @@ int create_self_component_input_port_message_iterator( if (iterator->methods.seek_beginning && !iterator->methods.can_seek_beginning) { iterator->methods.can_seek_beginning = - (bt_self_component_port_input_message_iterator_seek_beginning_method) + (bt_self_component_port_input_message_iterator_can_seek_beginning_method) can_seek_beginning_true; } -- 2.34.1