[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange conditionals in

From: Marc Hohl
Subject: strange conditionals in
Date: Sun, 25 Mar 2012 10:21:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20120313 Thunderbird/3.1.20

Hello list,

while analyzing and rewriting Bar_line::compound_barline in scheme
I stumbled across an inconsistency:

In Bar_line::print, the function compound_barline is called only if
the length of bar-extent is > 0.

In Bar_line::compound_barline, there is

h = extent.length ();

and later

if (str == "|." || ( h == 0 && str == ":|"))

IIUC, h == 0 could never be true, isn't it?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]