ASCII art diagram converter: Difference between revisions

Content added Content deleted
m (J: bugfix)
Line 167: Line 167:
currentBits, code, currentName);
currentBits, code, currentName);
if (bitCountPerRow == 0)
if (bitCountPerRow == 0)
bitCountPerRow = (line.length - 1) / cWidth;
bitCountPerRow = cast(uint) (line.length - 1) / cWidth;
else
else
assert(bitCountPerRow == (line.length - 1) / cWidth);
assert(bitCountPerRow == (line.length - 1) / cWidth);
Line 193: Line 193:
// At this point, line does not include the first
// At this point, line does not include the first
// C.pipe, but the length will include the last.
// C.pipe, but the length will include the last.
currentBits += line.length / cWidth;
currentBits += cast(uint) line.length / cWidth;


line = line[$ .. $];
line = line[$ .. $];