diff --git a/disasm/isa_parser.cc b/disasm/isa_parser.cc index 95ef8fb0b6..ca9ea0b69c 100644 --- a/disasm/isa_parser.cc +++ b/disasm/isa_parser.cc @@ -327,7 +327,7 @@ isa_parser_t::isa_parser_t(const char* str, const char *priv) } else if (ext_str.substr(0, 3) == "zvl") { reg_t new_vlen; try { - new_vlen = std::stol(ext_str.substr(3, ext_str.size() - 4)); + new_vlen = std::stol(ext_str.substr(3, ext_str.size() - 3)); } catch (std::logic_error& e) { new_vlen = 0; }