Clang-Tidy fixes (#6725)

This commit is contained in:
Pierre Wendling authored and GitHub committed 2022-12-01 13:07:03 -08:00
1 parent c2ce44bead
commit 3c501b963d
184 files changed
+1312 -1154

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;