Visual C++ compiler warning fixes

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402498
This commit is contained in:
Sam Lantinga 2007-07-12 06:53:20 +00:00
parent a3245a4e7c
commit a154c5dad2
5 changed files with 5 additions and 7 deletions

View file

@ -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, ", ");
}