Skip to content

Commit 8e6765e

Browse files
Sackzementslouken
authored andcommitted
Fixed warning: calloc-transposed-args
1 parent bd7fd21 commit 8e6765e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decoder_wav.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ static bool SDLCALL WAV_init_track(void *audio_userdata, SDL_IOStream *io, const
13811381
}
13821382

13831383
state->output.size = state->info->samplesperblock * state->info->channels;
1384-
state->output.data = (Sint16 *)SDL_calloc(sizeof(Sint16), state->output.size);
1384+
state->output.data = (Sint16 *)SDL_calloc(state->output.size, sizeof(Sint16));
13851385
if (!state->output.data) {
13861386
SDL_free(state->block.data);
13871387
SDL_free(state->cstate);

0 commit comments

Comments
 (0)