[macruby-changes] [3729] MacRuby/branches/icu/ext/zlib/zlib.c
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 9 19:09:42 PST 2010
Revision: 3729
http://trac.macosforge.org/projects/ruby/changeset/3729
Author: lsansonetti at apple.com
Date: 2010-03-09 19:09:42 -0800 (Tue, 09 Mar 2010)
Log Message:
-----------
re-indent some code
Modified Paths:
--------------
MacRuby/branches/icu/ext/zlib/zlib.c
Modified: MacRuby/branches/icu/ext/zlib/zlib.c
===================================================================
--- MacRuby/branches/icu/ext/zlib/zlib.c 2010-03-10 03:07:55 UTC (rev 3728)
+++ MacRuby/branches/icu/ext/zlib/zlib.c 2010-03-10 03:09:42 UTC (rev 3729)
@@ -552,11 +552,11 @@
zstream_discard_input(struct zstream *z, unsigned int len)
{
if (NIL_P(z->input) || BSTRING_LEN(z->input) <= len) {
- z->input = Qnil;
+ z->input = Qnil;
} else {
- UInt8 *buf = BSTRING_PTR(z->input);
- memmove(buf, buf+len, BSTRING_LEN(z->input) - len);
- rb_bstr_resize(z->input, BSTRING_LEN(z->input) - len);
+ UInt8 *buf = BSTRING_PTR(z->input);
+ memmove(buf, buf+len, BSTRING_LEN(z->input) - len);
+ rb_bstr_resize(z->input, BSTRING_LEN(z->input) - len);
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100309/183e581f/attachment-0001.html>
More information about the macruby-changes
mailing list