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

invalid operands of types '__complex__ int' and 'int' to binary 'operator>=' #1

Open
lukasjakobi opened this issue Feb 6, 2022 · 1 comment

Comments

@lukasjakobi
Copy link

I got this error in Arduino IDE 1.8.19 (Windows)

invalid operands of types '__complex__ int' and 'int' to binary 'operator>='

@lukasjakobi
Copy link
Author

I stumbled across this issue a few minutes ago and decided to investigate the issue again. I found a slight syntax mistake on Lines 1227 and 1254.

Mistake:

for(int i = columns - 1i >= 12;i--) has to be for(int i = columns - 1; i >= 12;i--)

Explanation

A for loop consists of three parts, that are each separated by ; (Semicolon). You simply forgot some Semicolons.

  • the first statement gets executed before the code block, it's mostly used for defining variables (e.g. i = 0)
  • the second statement defines the execution condition. If this condition is false, the loop stops (e.g. i < number)
  • the third statement gets executed (every time) after the code block has been executed. You can use it to increment a number (e.g. i++)

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

1 participant