Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/isa Be explicit about precedence of operators
details: https://anonhg.NetBSD.org/src/rev/2ee0a7950db5
branches: trunk
changeset: 349424:2ee0a7950db5
user: maya <maya%NetBSD.org@localhost>
date: Sat Dec 10 17:41:44 2016 +0000
description:
Be explicit about precedence of operators
Appeases clang when building an ALL kernel
diffstat:
sys/dev/isa/cms.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 76d643151ba9 -r 2ee0a7950db5 sys/dev/isa/cms.c
--- a/sys/dev/isa/cms.c Sat Dec 10 17:31:33 2016 +0000
+++ b/sys/dev/isa/cms.c Sat Dec 10 17:41:44 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cms.c,v 1.21 2012/04/09 10:18:16 plunky Exp $ */
+/* $NetBSD: cms.c,v 1.22 2016/12/10 17:41:44 maya Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cms.c,v 1.21 2012/04/09 10:18:16 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cms.c,v 1.22 2016/12/10 17:41:44 maya Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -261,7 +261,7 @@
/* set the volume */
/* this may be the wrong curve but will do something. no docs! */
- vol = 15 + (level_cB > -75) ? level_cB/5 : -15;
+ vol = 15 + ((level_cB > -75) ? level_cB/5 : -15);
CMS_WRITE(sc, chip, CMS_IREG_VOL0 + voice, ((vol<<4)|vol));
/* enable the voice */
Home |
Main Index |
Thread Index |
Old Index