diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-18 01:31:55 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-24 21:53:50 +0100 |
commit | 15cb4261665bab4ef02a5b1b9db48b9477c9b87a (patch) | |
tree | d0c40a45afa19fff26ce1eb5bb703e18a9acdd4a /auto_tests/toxav_many_test.c | |
parent | 0d347c2b2e69aa09b079f6daaa00007fef4fe52f (diff) |
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.
Diffstat (limited to 'auto_tests/toxav_many_test.c')
-rw-r--r-- | auto_tests/toxav_many_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) | |||
164 | 164 | ||
165 | c_sleep(30); | 165 | c_sleep(30); |
166 | 166 | ||
167 | int16_t *PCM = calloc(960, sizeof(int16_t)); | 167 | int16_t *PCM = (int16_t *)calloc(960, sizeof(int16_t)); |
168 | uint8_t *video_y = calloc(800 * 600, sizeof(uint8_t)); | 168 | uint8_t *video_y = (uint8_t *)calloc(800 * 600, sizeof(uint8_t)); |
169 | uint8_t *video_u = calloc(800 * 600 / 4, sizeof(uint8_t)); | 169 | uint8_t *video_u = (uint8_t *)calloc(800 * 600 / 4, sizeof(uint8_t)); |
170 | uint8_t *video_v = calloc(800 * 600 / 4, sizeof(uint8_t)); | 170 | uint8_t *video_v = (uint8_t *)calloc(800 * 600 / 4, sizeof(uint8_t)); |
171 | 171 | ||
172 | time_t start_time = time(NULL); | 172 | time_t start_time = time(NULL); |
173 | 173 | ||