Clang-Tidy fixes (#6725)

(cherry picked from commit 3c501b963d)
This commit is contained in:
Pierre Wendling authored and Sam Lantinga committed 2022-12-01 13:08:50 -08:00
1 parent e29c0661cc
commit d0bbfdbfb8
179 files changed
+1260 -1101

No files matched your search

+3 -2
View File
@@ -51,10 +51,11 @@ int main(int argc, char *argv[])
if (argc > 1) {
int success;
Uint64 seed = 0;
if (argv[1][0] == '0' && argv[1][1] == 'x')
if (argv[1][0] == '0' && argv[1][1] == 'x') {
success = SDL_sscanf(argv[1] + 2, "%" SDL_PRIx64, &seed);
else
} else {
success = SDL_sscanf(argv[1], "%" SDL_PRIu64, &seed);
}
if (!success) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Invalid seed. Use a decimal or hexadecimal number.\n");
return 1;