Apparently it's possible that MSVC will want to call a built-in function to
bitshift an Sint64, but it can't find this function since we don't use the C runtime on Windows. Division doesn't have this problem, though. Strange. Thanks, Suzuki Masahiro. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402242
This commit is contained in:
parent
84c4a54d7a
commit
c34806796a
1 changed files with 2 additions and 2 deletions
|
@ -140,14 +140,14 @@ SDL_ConvertMono(SDL_AudioCVT * cvt, SDL_AudioFormat format)
|
||||||
const Sint64 added =
|
const Sint64 added =
|
||||||
(((Sint64) (Sint32) SDL_SwapBE32(src[0])) +
|
(((Sint64) (Sint32) SDL_SwapBE32(src[0])) +
|
||||||
((Sint64) (Sint32) SDL_SwapBE32(src[1])));
|
((Sint64) (Sint32) SDL_SwapBE32(src[1])));
|
||||||
*(dst++) = SDL_SwapBE32((Uint32) ((Sint32) (added >> 1)));
|
*(dst++) = SDL_SwapBE32((Uint32) ((Sint32) (added / 2)));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (i = cvt->len_cvt / 8; i; --i, src += 2) {
|
for (i = cvt->len_cvt / 8; i; --i, src += 2) {
|
||||||
const Sint64 added =
|
const Sint64 added =
|
||||||
(((Sint64) (Sint32) SDL_SwapLE32(src[0])) +
|
(((Sint64) (Sint32) SDL_SwapLE32(src[0])) +
|
||||||
((Sint64) (Sint32) SDL_SwapLE32(src[1])));
|
((Sint64) (Sint32) SDL_SwapLE32(src[1])));
|
||||||
*(dst++) = SDL_SwapLE32((Uint32) ((Sint32) (added >> 1)));
|
*(dst++) = SDL_SwapLE32((Uint32) ((Sint32) (added / 2)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue