Created
September 9, 2022 15:38
-
-
Save gojimmypi/43b57d96e438e17c0cbe4a4241324ed6 to your computer and use it in GitHub Desktop.
undesired implicit cast test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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