fix parsing of relative branch paths

This commit is contained in:
Antonio SJ Musumeci 2021-02-11 19:49:50 -05:00
parent f6e37672b8
commit ed0c1db3a8

View file

@ -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);