mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Stop using x86-isms and use ISO C (oversized shifts are undefined).
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1397 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5f828c2c3d
commit
29ab939570
1 changed files with 1 additions and 1 deletions
|
|
@ -1879,7 +1879,7 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno)
|
|||
|
||||
pa_threaded_mainloop_lock(i->mainloop);
|
||||
|
||||
i->fragment_size = 1 << (*(int*) argp);
|
||||
i->fragment_size = 1 << ((*(int*) argp) & 31);
|
||||
i->n_fragments = (*(int*) argp) >> 16;
|
||||
|
||||
/* 0x7FFF means that we can set whatever we like */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue