summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-09-14 16:00:57 +0000
committerPierre Ossman <ossman@cendio.se>2006-09-14 16:00:57 +0000
commit29ab939570ee739570a6bfaa6569bd6f6135df56 (patch)
treed947853c774a0ae1e27a06e4b07f1f421b0051e5 /src/utils
parent5f828c2c3df6a788b5f8be3422bd355b91104791 (diff)
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
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/padsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c
index d947f697..c7bfe5ab 100644
--- a/src/utils/padsp.c
+++ b/src/utils/padsp.c
@@ -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 */