Visual C++ compiler warning fixes
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402498
This commit is contained in:
parent
a3245a4e7c
commit
a154c5dad2
5 changed files with 5 additions and 7 deletions
|
@ -245,7 +245,7 @@ CommonArg(CommonState * state, int index)
|
|||
if (!argv[index]) {
|
||||
return -1;
|
||||
}
|
||||
state->audiospec.channels = SDL_atoi(argv[index]);
|
||||
state->audiospec.channels = (Uint8)SDL_atoi(argv[index]);
|
||||
return 2;
|
||||
}
|
||||
if (SDL_strcasecmp(argv[index], "--samples") == 0) {
|
||||
|
@ -253,7 +253,7 @@ CommonArg(CommonState * state, int index)
|
|||
if (!argv[index]) {
|
||||
return -1;
|
||||
}
|
||||
state->audiospec.samples = SDL_atoi(argv[index]);
|
||||
state->audiospec.samples = (Uint16)SDL_atoi(argv[index]);
|
||||
return 2;
|
||||
}
|
||||
if ((SDL_strcasecmp(argv[index], "-h") == 0)
|
||||
|
@ -498,7 +498,7 @@ PrintRenderer(SDL_RendererInfo * info)
|
|||
fprintf(stderr, ")\n");
|
||||
|
||||
fprintf(stderr, " Texture formats (%d): ", info->num_texture_formats);
|
||||
for (i = 0; i < info->num_texture_formats; ++i) {
|
||||
for (i = 0; i < (int)info->num_texture_formats; ++i) {
|
||||
if (i > 0) {
|
||||
fprintf(stderr, ", ");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue