From 4865e7ea729dc4ee6d39b6f1875a28977b8c60fa Mon Sep 17 00:00:00 2001 From: Julian Hammer Date: Thu, 15 Oct 2020 11:59:51 +0200 Subject: [PATCH] fixed ignoring of last line without end marker --- osaca/semantics/marker_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osaca/semantics/marker_utils.py b/osaca/semantics/marker_utils.py index 42cb923..f47c147 100755 --- a/osaca/semantics/marker_utils.py +++ b/osaca/semantics/marker_utils.py @@ -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]