From 44af3779a9c075ae30cdf7acc728bd47401f9b38 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 1 Apr 2005 18:44:07 +0000 Subject: [PATCH] Make sure PTRDIFF_MIN, PTRDIFF_MAX, and SIZE_MAX have the proper types. --- src/lib/stdint.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/stdint.h b/src/lib/stdint.h index ef5f214..745ae77 100644 --- a/src/lib/stdint.h +++ b/src/lib/stdint.h @@ -43,9 +43,9 @@ typedef int64_t intmax_t; typedef uint64_t uintmax_t; #define UINTMAX_MAX UINT64_MAX -#define PTRDIFF_MIN INT32_MIN -#define PTRDIFF_MAX INT32_MAX +#define PTRDIFF_MIN ((__PTRDIFF_TYPE__) INT32_MIN) +#define PTRDIFF_MAX ((__PTRDIFF_TYPE__) INT32_MAX) -#define SIZE_MAX UINT32_MAX +#define SIZE_MAX ((__SIZE_TYPE__) UINT32_MAX) #endif /* lib/stdint.h */ -- 2.30.2