From ed0c1db3a8c821c592851423467ccdaedb1c9e82 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 11 Feb 2021 19:49:50 -0500 Subject: [PATCH] fix parsing of relative branch paths --- src/branch.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/branch.cpp b/src/branch.cpp index 34d79442..010ab9ea 100644 --- a/src/branch.cpp +++ b/src/branch.cpp @@ -119,7 +119,9 @@ namespace l { uint64_t offset; - offset = s_.find_first_of('/'); + offset = s_.find_first_not_of("+<>-="); + if(offset > 1) + offset = 2; *instr_ = s_.substr(0,offset); if(offset != std::string::npos) *values_ = s_.substr(offset);