Whilst replacing countChar with lyx::count, I came across this line whose 
semantics I do not understand.

src/buffer.C:2452:              
        for (int j = countChar(preamble, '\n'); j-- ;) {

shouldn't this be 
        for (int j = countChar(preamble, '\n'); j >= 0; --j) {

Alternatively, can someone explain what it means.
Angus

Reply via email to