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 /ext/zlib | |
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
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/zlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 --------*/ |