ruby-changes:36589
From: nobu <ko1@a...>
Date: Tue, 2 Dec 2014 04:47:41 +0900 (JST)
Subject: [ruby-changes:36589] nobu:r48670 (trunk): strscan.c: fix condition
nobu 2014-12-02 04:47:36 +0900 (Tue, 02 Dec 2014) New Revision: 48670 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48670 Log: strscan.c: fix condition * ext/strscan/strscan.c (strscan_init_copy): fix inverted condition. Modified files: trunk/ext/strscan/strscan.c Index: ext/strscan/strscan.c =================================================================== --- ext/strscan/strscan.c (revision 48669) +++ ext/strscan/strscan.c (revision 48670) @@ -252,7 +252,7 @@ strscan_init_copy(VALUE vself, VALUE vor https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L252 self->prev = orig->prev; self->curr = orig->curr; onig_region_copy(&self->regs, &orig->regs); - if (self->regs.allocated) rb_memerror(); + if (!self->regs.allocated) rb_memerror(); } return vself; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/