* ext/syck/yaml2byte.c (bytestring_append, bytestring_extend):

removed wrong extra assignments.  a patch from Marcus Rueckert
  <darix AT opensu.se> at [ruby-core:29759].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-04-24 00:44:42 +00:00
Родитель edcaae9741
Коммит 7668e5aa9d
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Sat Apr 24 09:44:40 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/syck/yaml2byte.c (bytestring_append, bytestring_extend):
removed wrong extra assignments. a patch from Marcus Rueckert
<darix AT opensu.se> at [ruby-core:29759].
Sat Apr 24 00:41:52 2010 Yusuke Endoh <mame@tsg.ne.jp>
* process.c (rb_f_fork): remove after_exec() which sometimes caused

Просмотреть файл

@ -63,7 +63,7 @@ void bytestring_append(bytestring_t *str, char code,
grow = (length - str->remaining) + CHUNKSIZE;
str->remaining += grow;
str->length += grow;
str->buffer = S_REALLOC_N( str->buffer, char, str->length + 1 );
S_REALLOC_N( str->buffer, char, str->length + 1 );
assert(str->buffer);
}
curr = str->buffer + (str->length - str->remaining);
@ -100,7 +100,7 @@ void bytestring_extend(bytestring_t *str, bytestring_t *ext)
grow = (length - str->remaining) + CHUNKSIZE;
str->remaining += grow;
str->length += grow;
str->buffer = S_REALLOC_N( str->buffer, char, str->length + 1 );
S_REALLOC_N( str->buffer, char, str->length + 1 );
}
curr = str->buffer + (str->length - str->remaining);
from = ext->buffer;