Fix SVACE defects
[platform/core/api/audio-io.git] / test / audio_io_test.c
index 2904167..b1f81b9 100644 (file)
@@ -588,7 +588,7 @@ static void _audio_io_stream_read_cb(audio_in_h handle, size_t nbytes, void *use
 static void _audio_io_stream_write_cb(audio_out_h handle, size_t nbytes, void *user_data)
 {
        short *buffer = NULL;
-       int i = 0;
+       size_t i = 0;
 
        if (nbytes == 0)
                return;
@@ -1096,7 +1096,7 @@ int audio_io_test_read_write()
 
        void in_stream_cb(audio_in_h handle, size_t nbytes, void *user_data) {
                void* buf = NULL;
-               unsigned int size = nbytes;
+               unsigned int size = (unsigned int)nbytes;
 
                audio_in_peek(handle, (const void **)buf, &size);
                audio_in_drop(handle);