about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-12 09:16:02 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-12 09:16:02 +0000
commit36fafd9c3a0df7d6dda390163e632c449e8249e7 (patch)
tree8d40408c5a852954d7cbe3a9f516ce1888226084
parent6b9c2e671c08bd80606d9da81aee00bb03c44f90 (diff)
downloadglibc-36fafd9c3a0df7d6dda390163e632c449e8249e7.tar.gz
glibc-36fafd9c3a0df7d6dda390163e632c449e8249e7.tar.xz
glibc-36fafd9c3a0df7d6dda390163e632c449e8249e7.zip
Update.
1998-04-12  Ulrich Drepper  <drepper@cygnus.com>

	* time/mktime.c (TYPE_MAXIMUM): Add missing cast.
	Patch by Jim Meyering.
-rw-r--r--ChangeLog5
-rw-r--r--time/mktime.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e378892383..e48d6abc10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-04-12  Ulrich Drepper  <drepper@cygnus.com>
+
+	* time/mktime.c (TYPE_MAXIMUM): Add missing cast.
+	Patch by Jim Meyering.
+
 1998-04-11  Ulrich Drepper  <drepper@cygnus.com>
 
 	* rt/tst-aio.c: Add test for aio_read and lio_listio.
diff --git a/time/mktime.c b/time/mktime.c
index 653ef5c25e..f5a4f61f67 100644
--- a/time/mktime.c
+++ b/time/mktime.c
@@ -77,7 +77,7 @@
    It is necessary at least when t == time_t.  */
 #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
 			      ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
-#define TYPE_MAXIMUM(t) (~ (t) 0 - TYPE_MINIMUM (t))
+#define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
 
 #ifndef INT_MIN
 # define INT_MIN TYPE_MINIMUM (int)