ivanseidel/LinkedList

Type mismatch error

miguelh72 opened this issue · 3 comments

Arduino\libraries\LinkedList/LinkedList.h:160:9: error: cannot convert 'bool' to 'ListNode*' in return

return false;

But return type must be ListNode not boolean.

Made a bad temporary workaround by changing line 160 to return current; on my local copy of the library. Hoping for a proper fix soon.

Funny enough this was not an issue on the Arduino Due, but it prevents compiling on Arduino Mega.

Also have this issue with boards uno and micro since Arduino V1.8.10. With V1.8.9 everything was ok.
ryan-lastufka's workaround works for me, thank you. As i have found in other C++ articles you can return NULL for ListNode*

Having the same issue with Arduino Uno.

@ryan-lastufka workaround works for me too. Thanks!