ruby-changes:18518
From: naruse <ko1@a...>
Date: Fri, 14 Jan 2011 14:07:00 +0900 (JST)
Subject: [ruby-changes:18518] Ruby:r30541 (trunk): The cast must use uint32_t.
naruse 2011-01-14 13:54:51 +0900 (Fri, 14 Jan 2011) New Revision: 30541 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30541 Log: The cast must use uint32_t. [ruby-core:34481] Modified files: trunk/ext/zlib/zlib.c Index: ext/zlib/zlib.c =================================================================== --- ext/zlib/zlib.c (revision 30540) +++ ext/zlib/zlib.c (revision 30541) @@ -2169,7 +2169,7 @@ if (gz->crc != crc) { rb_raise(cCRCError, "invalid compressed data -- crc error"); } - if ((int32_t)gz->z.stream.total_out != length) { + if ((uint32_t)gz->z.stream.total_out != length) { rb_raise(cLengthError, "invalid compressed data -- length error"); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/