diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-22 11:24:38 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-22 11:24:38 +0000 |
commit | 7bfaa467ce944bf9efbff2299865b5f4755473b3 (patch) | |
tree | adad16ce6f16be8936f6c2bb78634655bbccbc95 | |
parent | 32dcb81d5851035de6b47ccfd760ee5b78f58d93 (diff) | |
download | ruby-7bfaa467ce944bf9efbff2299865b5f4755473b3.tar.gz |
* string.c (rb_fstring): fix condition (easy to cause infinite loop!).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | string.c | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Fri Aug 22 20:23:54 2014 Koichi Sasada <ko1@atdot.net> + + * string.c (rb_fstring): fix condition (easy to cause infinite loop!). + Fri Aug 22 20:07:43 2014 Koichi Sasada <ko1@atdot.net> * string.c (rb_fstring, fstr_update_callback): simply delete garbage @@ -17,7 +21,7 @@ Fri Aug 22 19:30:39 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> Fri Aug 22 19:25:28 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> - * test/ruby/test_complex.rb: fixed broken tests. Math is not + * test/ruby/test_complex.rb: fixed broken tests. Math is nota compatible CMath now. Fri Aug 22 15:36:09 2014 Nobuyoshi Nakada <nobu@ruby-lang.org> @@ -232,7 +232,7 @@ rb_fstring(VALUE str) do { ret = str; st_update(frozen_strings, (st_data_t)str, fstr_update_callback, (st_data_t)&ret); - } while (ret != Qundef); + } while (ret == Qundef); return ret; } |