Skip to content

Commit fb431b4

Browse files
committed
[lib][arch] fix the bug with arch xml token parsing
1 parent 6434cd2 commit fb431b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ static std::pair<int, int> process_instance_string(pugi::xml_node Locations,
774774
}
775775

776776
token_index++;
777+
token = tokens[token_index];
777778

778779
int first_inst = 0;
779780
int last_inst = sub_tile.capacity.total() - 1;
@@ -790,6 +791,7 @@ static std::pair<int, int> process_instance_string(pugi::xml_node Locations,
790791
}
791792

792793
token_index++;
794+
token = tokens[token_index];
793795

794796
if (tokens[token_index].type != e_token_type::INT) {
795797
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),

0 commit comments

Comments
 (0)