src/audio/SDL_audiocvt.c
changeset 2078 f932ac47a331
parent 2049 5f6550e5184f
child 2130 3ee59c43d784
--- a/src/audio/SDL_audiocvt.c	Wed Nov 29 10:34:05 2006 +0000
+++ b/src/audio/SDL_audiocvt.c	Wed Nov 29 10:38:07 2006 +0000
@@ -140,14 +140,14 @@
                     const Sint64 added =
                         (((Sint64) (Sint32) SDL_SwapBE32(src[0])) +
                          ((Sint64) (Sint32) SDL_SwapBE32(src[1])));
-                    *(dst++) = SDL_SwapBE32((Uint32) ((Sint32) (added >> 1)));
+                    *(dst++) = SDL_SwapBE32((Uint32) ((Sint32) (added / 2)));
                 }
             } else {
                 for (i = cvt->len_cvt / 8; i; --i, src += 2) {
                     const Sint64 added =
                         (((Sint64) (Sint32) SDL_SwapLE32(src[0])) +
                          ((Sint64) (Sint32) SDL_SwapLE32(src[1])));
-                    *(dst++) = SDL_SwapLE32((Uint32) ((Sint32) (added >> 1)));
+                    *(dst++) = SDL_SwapLE32((Uint32) ((Sint32) (added / 2)));
                 }
             }
         }