diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-31 02:16:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-31 02:16:00 +0000 |
commit | cf1cc4bd8b6afcd78d456036541759e520a4910a (patch) | |
tree | 220e69fe71e44fd71bed799f357c4c35038cae22 | |
parent | 095c2deca0a51cced9866ce5af8e8493c35e7001 (diff) | |
download | ruby-cf1cc4bd8b6afcd78d456036541759e520a4910a.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/zlib/zlib.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Fri Dec 31 11:15:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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 <akr@fsij.org> * 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 --------*/ |