mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
Merge pull request #405 from dragos-oancea/core_file-unit-test-scan-build
[unit-tests] scan-build: Result of 'malloc' is converted to a pointer of type 'char', which is incompatible with sizeof operand type 'int16_t'
This commit is contained in:
commit
ac27b87b9c
@ -132,7 +132,7 @@ FST_CORE_BEGIN("./conf")
|
||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||
switch_file_handle_t fhw = { 0 };
|
||||
static char filename[] = "/tmp/fs_write_unit_test.wav";
|
||||
char *buf;
|
||||
int16_t *buf;
|
||||
int nr_frames = 3, i;
|
||||
switch_size_t len;
|
||||
|
||||
@ -159,7 +159,7 @@ FST_CORE_BEGIN("./conf")
|
||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||
switch_file_handle_t fhw = { 0 };
|
||||
static char filename[] = "/tmp/fs_write_unit_test.wav";
|
||||
char *buf;
|
||||
int16_t *buf;
|
||||
int nr_frames = 3, i, want_channels = 2;
|
||||
switch_size_t len;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user