[#74190] [Ruby trunk Feature#12134] Comparison between `true` and `false` — duerst@...
SXNzdWUgIzEyMTM0IGhhcyBiZWVuIHVwZGF0ZWQgYnkgTWFydGluIETDvHJzdC4KCgpUc3V5b3No
3 messages
2016/03/07
[#74269] Type systems for Ruby — Rob Blanco <ml@...>
Dear ruby-core,
5 messages
2016/03/10
[#74395] [Ruby trunk Feature#12142] Hash tables with open addressing — shyouhei@...
Issue #12142 has been updated by Shyouhei Urabe.
3 messages
2016/03/17
[ruby-core:74597] [Ruby trunk Bug#12201] nkf.c static void fold_conv part of exression always true
From:
fanantoxa@...
Date:
2016-03-27 01:06:00 UTC
List:
ruby-core #74597
Issue #12201 has been updated by Anton Sivakov.
Assignee set to Shyouhei Urabe
----------------------------------------
Bug #12201: nkf.c static void fold_conv part of exression always true
https://bugs.ruby-lang.org/issues/12201#change-57725
* Author: Anton Sivakov
* Status: Open
* Priority: Normal
* Assignee: Shyouhei Urabe
* ruby -v:
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
~~~
/* new line */
if (fold_preserve_f) {
f_prev = c1;
f_line = 0;
fold_state = CR;
} else if ((f_prev == c1 && !fold_preserve_f)
|| (f_prev == LF && fold_preserve_f)
) { /* duplicate newline */
~~~
f_prev == c1 && !fold_preserve_f - here expression !fold_preserve_f always true because above we have if (fold_preserve_f) and here 'else if'
(f_prev == LF && fold_preserve_f) - this expression alway will be false for the same reason
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>