From 15cb4261665bab4ef02a5b1b9db48b9477c9b87a Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 18 Sep 2016 01:31:55 +0100 Subject: Make toxcore code C++ compatible. It is still C code, so still compatible with C compilers as well. This change lets us see more clearly where implicit conversions occur by making them explicit. --- auto_tests/toxav_many_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'auto_tests/toxav_many_test.c') diff --git a/auto_tests/toxav_many_test.c b/auto_tests/toxav_many_test.c index fec2a1de..6f864f07 100644 --- a/auto_tests/toxav_many_test.c +++ b/auto_tests/toxav_many_test.c @@ -164,10 +164,10 @@ static void *call_thread(void *pd) c_sleep(30); - int16_t *PCM = calloc(960, sizeof(int16_t)); - uint8_t *video_y = calloc(800 * 600, sizeof(uint8_t)); - uint8_t *video_u = calloc(800 * 600 / 4, sizeof(uint8_t)); - uint8_t *video_v = calloc(800 * 600 / 4, sizeof(uint8_t)); + int16_t *PCM = (int16_t *)calloc(960, sizeof(int16_t)); + uint8_t *video_y = (uint8_t *)calloc(800 * 600, sizeof(uint8_t)); + uint8_t *video_u = (uint8_t *)calloc(800 * 600 / 4, sizeof(uint8_t)); + uint8_t *video_v = (uint8_t *)calloc(800 * 600 / 4, sizeof(uint8_t)); time_t start_time = time(NULL); -- cgit v1.2.3