Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Fix gcc complaining about int to unsigned long conve...
details: https://anonhg.NetBSD.org/src/rev/d31bcc4c91e8
branches: trunk
changeset: 349701:d31bcc4c91e8
user: roy <roy%NetBSD.org@localhost>
date: Mon Dec 19 11:17:00 2016 +0000
description:
Fix gcc complaining about int to unsigned long conversion issues by
explictly marking as unsigned in RT_ROUNDUP2.
diffstat:
sys/net/route.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 0548c3e2518d -r d31bcc4c91e8 sys/net/route.h
--- a/sys/net/route.h Mon Dec 19 07:51:34 2016 +0000
+++ b/sys/net/route.h Mon Dec 19 11:17:00 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.h,v 1.110 2016/12/16 20:11:52 christos Exp $ */
+/* $NetBSD: route.h,v 1.111 2016/12/19 11:17:00 roy Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -286,7 +286,7 @@
#define RTAX_TAG 8 /* route tag */
#define RTAX_MAX 9 /* size of array to allocate */
-#define RT_ROUNDUP2(a, n) ((a) > 0 ? (1 + (((a) - 1) | ((n) - 1))) : (n))
+#define RT_ROUNDUP2(a, n) ((a) > 0 ? (1 + (((a) - 1U) | ((n) - 1))) : (n))
#define RT_ROUNDUP(a) RT_ROUNDUP2((a), sizeof(uint64_t))
#define RT_ADVANCE(x, n) (x += RT_ROUNDUP((n)->sa_len))
Home |
Main Index |
Thread Index |
Old Index