Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libossaudio fix non-portable shift.
details: https://anonhg.NetBSD.org/src/rev/510a156788ed
branches: trunk
changeset: 769543:510a156788ed
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 13 19:10:18 2011 +0000
description:
fix non-portable shift.
diffstat:
lib/libossaudio/ossaudio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 80c1f3ec57b4 -r 510a156788ed lib/libossaudio/ossaudio.c
--- a/lib/libossaudio/ossaudio.c Tue Sep 13 19:07:44 2011 +0000
+++ b/lib/libossaudio/ossaudio.c Tue Sep 13 19:10:18 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ossaudio.c,v 1.25 2011/09/06 01:20:18 jmcneill Exp $ */
+/* $NetBSD: ossaudio.c,v 1.26 2011/09/13 19:10:18 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: ossaudio.c,v 1.25 2011/09/06 01:20:18 jmcneill Exp $");
+__RCSID("$NetBSD: ossaudio.c,v 1.26 2011/09/13 19:10:18 christos Exp $");
/*
* This is an OSS (Linux) sound API emulator.
@@ -776,7 +776,7 @@
return EINVAL;
idat = INTARG;
l = FROM_OSSVOL( idat & 0xff);
- r = FROM_OSSVOL((idat >> 8) & 0xff);
+ r = FROM_OSSVOL(((u_int)idat >> 8) & 0xff);
mc.dev = di->devmap[n];
mc.type = AUDIO_MIXER_VALUE;
if (di->stereomask & (1<<n)) {
Home |
Main Index |
Thread Index |
Old Index