fixed ignoring of last line without end marker

This commit is contained in:
Julian Hammer
2020-10-15 11:59:51 +02:00
parent edb8df3205
commit 4865e7ea72

View File

@@ -23,6 +23,8 @@ def reduce_to_section(kernel, isa):
raise ValueError('ISA not supported.')
if start == -1:
start = 0
if end == -1:
end = len(kernel)
return kernel[start:end]