fix wrong integer promotion rule(removed U suffix from UINT{8,16}_C).

see ISO/IEC 9899:1999 7.18.4.3.
This commit is contained in:
tnozaki 2010-05-29 17:33:57 +00:00
parent fa87e899f8
commit dc71c99d49
11 changed files with 33 additions and 33 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:11 martin Exp $ */
/* $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -43,8 +43,8 @@
#define INT32_C(c) c
#define INT64_C(c) c ## L
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#define UINT64_C(c) c ## UL

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.3 2008/10/26 00:08:15 mrg Exp $ */
/* $NetBSD: int_const.h,v 1.4 2010/05/29 17:33:57 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -45,8 +45,8 @@
#define INT32_C(c) c
#define INT64_C(c) c ## L
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#define UINT64_C(c) c ## UL

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:14 martin Exp $ */
/* $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -43,8 +43,8 @@
#define INT32_C(c) c
#define INT64_C(c) c ## LL
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#define UINT64_C(c) c ## ULL

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:23 martin Exp $ */
/* $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -43,8 +43,8 @@
#define INT32_C(c) c
#define INT64_C(c) c ## LL
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#define UINT64_C(c) c ## ULL

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:24 martin Exp $ */
/* $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -43,8 +43,8 @@
#define INT32_C(c) c
#define INT64_C(c) c ## LL
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#define UINT64_C(c) c ## ULL

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:25 martin Exp $ */
/* $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -44,8 +44,8 @@
#define INT32_C(c) c
#define INT64_C(c) c ## L
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#define UINT64_C(c) c ## UL

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:26 martin Exp $ */
/* $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -43,8 +43,8 @@
#define INT32_C(c) c
#define INT64_C(c) c ## LL
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#define UINT64_C(c) c ## ULL

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.3 2008/04/28 20:23:28 martin Exp $ */
/* $NetBSD: int_const.h,v 1.4 2010/05/29 17:33:57 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -47,8 +47,8 @@
#define INT64_C(c) c ## LL
#endif
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#ifdef _LP64
#define UINT64_C(c) c ## UL

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.3 2008/04/28 20:23:32 martin Exp $ */
/* $NetBSD: int_const.h,v 1.4 2010/05/29 17:33:58 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -47,8 +47,8 @@
#define INT64_C(c) c ## LL
#endif
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#ifdef _LP64
#define UINT64_C(c) c ## UL

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.3 2008/04/28 20:23:35 martin Exp $ */
/* $NetBSD: int_const.h,v 1.4 2010/05/29 17:33:58 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -43,8 +43,8 @@
#define INT32_C(c) c
#define INT64_C(c) c ## LL
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#define UINT64_C(c) c ## ULL

View File

@ -1,4 +1,4 @@
/* $NetBSD: int_const.h,v 1.2 2008/04/28 20:23:36 martin Exp $ */
/* $NetBSD: int_const.h,v 1.3 2010/05/29 17:33:58 tnozaki Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -47,8 +47,8 @@
#define INT64_C(c) c ## LL
#endif
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
#ifdef __arch64__
#define UINT64_C(c) c ## UL