Skip to content

Instantly share code, notes, and snippets.

@gojimmypi
Created September 9, 2022 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gojimmypi/43b57d96e438e17c0cbe4a4241324ed6 to your computer and use it in GitHub Desktop.
Save gojimmypi/43b57d96e438e17c0cbe4a4241324ed6 to your computer and use it in GitHub Desktop.
undesired implicit cast test
// undesired implicit cast test
unsigned int x = 1;
signed int y = -1;
if (x > y) {
ESP_LOGI(TAG, "correct!");
} else {
ESP_LOGI(TAG, "Oops");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment