From 1772ee06ccff85a361dbf4f4efeaab7861fc10a8 Mon Sep 17 00:00:00 2001 From: Chen Tao Date: Wed, 28 Sep 2022 02:24:33 +0900 Subject: [PATCH] fix: ARM GCC compiler error (#1952) Co-authored-by: David Leal --- data_structures/reverse_a_linked_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/reverse_a_linked_list.cpp b/data_structures/reverse_a_linked_list.cpp index de92065b4..498a55146 100644 --- a/data_structures/reverse_a_linked_list.cpp +++ b/data_structures/reverse_a_linked_list.cpp @@ -146,7 +146,7 @@ int32_t list::last() { * @brief Utility function to find the i th element of the list * @returns the i th element of the list */ -int32_t list::traverse(int index) { +int32_t list::traverse(int32_t index) { Node *current = head; int count = 0;