Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast/dev PR/50964: David Binderman: Avoid sign...
details: https://anonhg.NetBSD.org/src/rev/c90d7e2aef6d
branches: trunk
changeset: 344119:c90d7e2aef6d
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 13 17:59:20 2016 +0000
description:
PR/50964: David Binderman: Avoid signed overflow warning
diffstat:
sys/arch/dreamcast/dev/gdrom.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 185c75f1fb32 -r c90d7e2aef6d sys/arch/dreamcast/dev/gdrom.c
--- a/sys/arch/dreamcast/dev/gdrom.c Sun Mar 13 17:56:56 2016 +0000
+++ b/sys/arch/dreamcast/dev/gdrom.c Sun Mar 13 17:59:20 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gdrom.c,v 1.41 2015/04/26 15:15:19 mlelstv Exp $ */
+/* $NetBSD: gdrom.c,v 1.42 2016/03/13 17:59:20 christos Exp $ */
/*-
* Copyright (c) 2001 Marcus Comstedt
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.41 2015/04/26 15:15:19 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.42 2016/03/13 17:59:20 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -132,7 +132,7 @@
#define TOC_CTRL(n) (((n) & 0xf0) >> 4)
#define TOC_TRACK(n) (((n) & 0x0000ff00) >> 8)
-#define GDROM(o) (*(volatile uint8_t *)(0xa05f7000 + (o)))
+#define GDROM(o) (*(volatile uint8_t *)(0xa05f7000U + (o)))
#define GDSTATSTAT(n) ((n) & 0xf)
#define GDSTATDISK(n) (((n) >> 4) & 0xf)
Home |
Main Index |
Thread Index |
Old Index