Skip to content

Commit 54c8b79

Browse files
committed
Fix parsing of non-integer Fc values in <fc_override>
1 parent 4bd7663 commit 54c8b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ static t_fc_override Process_Fc_override(pugi::xml_node node, const pugiutil::lo
17301730
fc_override.fc_type = string_to_fc_type(attrib.value(), node, loc_data);
17311731
seen_fc_type = true;
17321732
} else if (attrib.name() == std::string("fc_val")) {
1733-
fc_override.fc_value = vtr::atoi(attrib.value());
1733+
fc_override.fc_value = vtr::atof(attrib.value());
17341734
seen_fc_value = true;
17351735
} else {
17361736
archfpga_throw(loc_data.filename_c_str(), loc_data.line(node),

0 commit comments

Comments
 (0)