SDL: Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data (445cb)

From 445cb42acd00ef2f1cfcc12f9924914d9ea261b0 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 3 Feb 2024 11:29:10 -0800
Subject: [PATCH] Fixed warning C4244: 'function': conversion from 'int' to
 'Uint16', possible loss of data

---
 test/testresample.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/testresample.c b/test/testresample.c
index 760d66ff6b9c..62b6e01e454d 100644
--- a/test/testresample.c
+++ b/test/testresample.c
@@ -132,11 +132,11 @@ int main(int argc, char **argv)
     SDL_WriteU32LE(io, 0x20746D66);                             /* fmt */
     SDL_WriteU32LE(io, 16);                                     /* chunk size */
     SDL_WriteU16LE(io, SDL_AUDIO_ISFLOAT(spec.format) ? 3 : 1); /* uncompressed */
-    SDL_WriteU16LE(io, cvtspec.channels);                       /* channels */
+    SDL_WriteU16LE(io, (Uint16)cvtspec.channels);               /* channels */
     SDL_WriteU32LE(io, cvtspec.freq);                           /* sample rate */
     SDL_WriteU32LE(io, avgbytes);                               /* average bytes per second */
-    SDL_WriteU16LE(io, blockalign);                             /* block align */
-    SDL_WriteU16LE(io, bitsize);                                /* significant bits per sample */
+    SDL_WriteU16LE(io, (Uint16)blockalign);                     /* block align */
+    SDL_WriteU16LE(io, (Uint16)bitsize);                        /* significant bits per sample */
     SDL_WriteU32LE(io, 0x61746164);                             /* data */
     SDL_WriteU32LE(io, dst_len);                                /* size */
     SDL_RWwrite(io, dst_buf, dst_len);