From cf1cc4bd8b6afcd78d456036541759e520a4910a Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 31 Dec 2010 02:16:00 +0000 Subject: [PATCH] * ext/zlib/zlib.c (sizeof): zlib.h mistakenly assumes the result of sizeof to be int, not size_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/zlib/zlib.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 44a84b8017..72b827a337 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Dec 31 11:15:57 2010 Nobuyoshi Nakada + + * ext/zlib/zlib.c (sizeof): zlib.h mistakenly assumes the result + of sizeof to be int, not size_t. + Fri Dec 31 10:27:34 2010 Tanaka Akira * st.c: parenthesize macro arguments. diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index c59d0cbb27..deb25c1e22 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -42,6 +42,7 @@ #endif #endif +#define sizeof(x) ((int)sizeof(x)) /*--------- Prototypes --------*/