Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type mismatch error #43

Open
miguelh72 opened this issue Jan 5, 2021 · 3 comments
Open

Type mismatch error #43

miguelh72 opened this issue Jan 5, 2021 · 3 comments

Comments

@miguelh72
Copy link

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.

@ryan-lastufka
Copy link

ryan-lastufka commented Jan 22, 2021

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.

@PatKeel
Copy link

PatKeel commented Jan 24, 2021

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*

@gilad-solter
Copy link

Having the same issue with Arduino Uno.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants