ruby-changes:18414
From: nobu <ko1@a...>
Date: Fri, 31 Dec 2010 11:20:08 +0900 (JST)
Subject: [ruby-changes:18414] Ruby:r30437 (trunk): * ext/zlib/zlib.c (sizeof): zlib.h mistakenly assumes the result
nobu 2010-12-31 11:16:00 +0900 (Fri, 31 Dec 2010) New Revision: 30437 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30437 Log: * ext/zlib/zlib.c (sizeof): zlib.h mistakenly assumes the result of sizeof to be int, not size_t. Modified files: trunk/ChangeLog trunk/ext/zlib/zlib.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30436) +++ ChangeLog (revision 30437) @@ -1,3 +1,8 @@ +Fri Dec 31 11:15:57 2010 Nobuyoshi Nakada <nobu@r...> + + * 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@f...> * st.c: parenthesize macro arguments. Index: ext/zlib/zlib.c =================================================================== --- ext/zlib/zlib.c (revision 30436) +++ ext/zlib/zlib.c (revision 30437) @@ -42,6 +42,7 @@ #endif #endif +#define sizeof(x) ((int)sizeof(x)) /*--------- Prototypes --------*/ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/