[#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:74472] [Ruby trunk Bug#12201] nkf.c static void fold_conv part of exression always true
From:
fanantoxa@...
Date:
2016-03-20 12:12:38 UTC
List:
ruby-core #74472
Issue #12201 has been reported by Anton Sivakov.
----------------------------------------
Bug #12201: nkf.c static void fold_conv part of exression always true
https://bugs.ruby-lang.org/issues/12201
* Author: Anton Sivakov
* Status: Open
* Priority: Normal
* Assignee:
* 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:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>