Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Make all __ALIGNBYTES macros return the same type (...
details: https://anonhg.NetBSD.org/src/rev/55b099ef416d
branches: trunk
changeset: 794587:55b099ef416d
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 18 17:11:19 2014 +0000
description:
Make all __ALIGNBYTES macros return the same type (size_t)
diffstat:
sys/arch/alpha/include/cdefs.h | 4 ++--
sys/arch/arm/include/cdefs.h | 4 ++--
sys/arch/hppa/include/cdefs.h | 4 ++--
sys/arch/ia64/include/cdefs.h | 4 ++--
sys/arch/mips/include/cdefs.h | 4 ++--
sys/arch/sparc/include/cdefs.h | 6 +++---
6 files changed, 13 insertions(+), 13 deletions(-)
diffs (103 lines):
diff -r 464e7f1e7745 -r 55b099ef416d sys/arch/alpha/include/cdefs.h
--- a/sys/arch/alpha/include/cdefs.h Tue Mar 18 16:05:34 2014 +0000
+++ b/sys/arch/alpha/include/cdefs.h Tue Mar 18 17:11:19 2014 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: cdefs.h,v 1.12 2012/01/20 14:08:05 joerg Exp $ */
+/* $NetBSD: cdefs.h,v 1.13 2014/03/18 17:11:19 christos Exp $ */
#ifndef _MACHINE_CDEFS_H_
#define _MACHINE_CDEFS_H_
-#define __ALIGNBYTES 7
+#define __ALIGNBYTES ((size_t)7)
#endif /* !_MACHINE_CDEFS_H_ */
diff -r 464e7f1e7745 -r 55b099ef416d sys/arch/arm/include/cdefs.h
--- a/sys/arch/arm/include/cdefs.h Tue Mar 18 16:05:34 2014 +0000
+++ b/sys/arch/arm/include/cdefs.h Tue Mar 18 17:11:19 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.12 2014/01/29 01:20:03 matt Exp $ */
+/* $NetBSD: cdefs.h,v 1.13 2014/03/18 17:11:19 christos Exp $ */
#ifndef _ARM_CDEFS_H_
#define _ARM_CDEFS_H_
@@ -50,7 +50,7 @@
#endif
#if defined(__ARM_EABI__) || defined(__ARM_PCS_AAPCS64)
-#define __ALIGNBYTES (8 - 1)
+#define __ALIGNBYTES ((size_t)(8 - 1))
#else
#define __ALIGNBYTES (sizeof(int) - 1)
#endif
diff -r 464e7f1e7745 -r 55b099ef416d sys/arch/hppa/include/cdefs.h
--- a/sys/arch/hppa/include/cdefs.h Tue Mar 18 16:05:34 2014 +0000
+++ b/sys/arch/hppa/include/cdefs.h Tue Mar 18 17:11:19 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.2 2012/01/20 14:08:05 joerg Exp $ */
+/* $NetBSD: cdefs.h,v 1.3 2014/03/18 17:11:19 christos Exp $ */
#ifndef _HPPA_CDEFS_H_
#define _HPPA_CDEFS_H_
@@ -10,6 +10,6 @@
*/
#define __ASM_DELIMITER "\n\t"
-#define __ALIGNBYTES 7
+#define __ALIGNBYTES ((size_t)7)
#endif /* !_HPPA_CDEFS_H_ */
diff -r 464e7f1e7745 -r 55b099ef416d sys/arch/ia64/include/cdefs.h
--- a/sys/arch/ia64/include/cdefs.h Tue Mar 18 16:05:34 2014 +0000
+++ b/sys/arch/ia64/include/cdefs.h Tue Mar 18 17:11:19 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.2 2012/01/20 14:08:06 joerg Exp $ */
+/* $NetBSD: cdefs.h,v 1.3 2014/03/18 17:11:19 christos Exp $ */
#ifndef _MACHINE_CDEFS_H_
#define _MACHINE_CDEFS_H_
@@ -8,6 +8,6 @@
#define __ELF__
#endif
-#define __ALIGNBYTES 15
+#define __ALIGNBYTES ((size_t)15)
#endif /* !_MACHINE_CDEFS_H_ */
diff -r 464e7f1e7745 -r 55b099ef416d sys/arch/mips/include/cdefs.h
--- a/sys/arch/mips/include/cdefs.h Tue Mar 18 16:05:34 2014 +0000
+++ b/sys/arch/mips/include/cdefs.h Tue Mar 18 17:11:19 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.14 2012/01/20 14:08:06 joerg Exp $ */
+/* $NetBSD: cdefs.h,v 1.15 2014/03/18 17:11:19 christos Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
@@ -71,6 +71,6 @@
#define _MIPS_ISA_MIPS32 5
#define _MIPS_ISA_MIPS64 6
-#define __ALIGNBYTES 7
+#define __ALIGNBYTES ((size_t)7)
#endif /* !_MIPS_CDEFS_H_ */
diff -r 464e7f1e7745 -r 55b099ef416d sys/arch/sparc/include/cdefs.h
--- a/sys/arch/sparc/include/cdefs.h Tue Mar 18 16:05:34 2014 +0000
+++ b/sys/arch/sparc/include/cdefs.h Tue Mar 18 17:11:19 2014 +0000
@@ -1,13 +1,13 @@
-/* $NetBSD: cdefs.h,v 1.12 2012/01/20 14:08:06 joerg Exp $ */
+/* $NetBSD: cdefs.h,v 1.13 2014/03/18 17:11:19 christos Exp $ */
#ifndef _MACHINE_CDEFS_H_
#define _MACHINE_CDEFS_H_
/* No arch-specific cdefs. */
#ifdef __arch64__
-#define __ALIGNBYTES 0xf
+#define __ALIGNBYTES ((size_t)0xf)
#else
-#define __ALIGNBYTES 0x7
+#define __ALIGNBYTES ((size_t)0x7)
#endif
#endif /* !_MACHINE_CDEFS_H_ */
Home |
Main Index |
Thread Index |
Old Index