Skip to content

Commit

Permalink
sokol-audio: fix a gcc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Sep 24, 2018
1 parent 4bc2e0a commit 5e6126b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sokol_audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ _SOKOL_PRIVATE bool _saudio_backend_init(void) {
snd_pcm_hw_params_get_rate(params, &val, &dir);
_saudio.sample_rate = val;
snd_pcm_hw_params_get_channels(params, &val);
SOKOL_ASSERT(val == _saudio.num_channels);
SOKOL_ASSERT((int)val == _saudio.num_channels);
_saudio.bytes_per_frame = _saudio.num_channels * sizeof(float);

/* allocate the streaming buffer */
Expand Down

0 comments on commit 5e6126b

Please sign in to comment.