[Tool] Patch to remove compiler warnings

This commit is contained in:
tangxifan 2021-02-04 16:54:04 -07:00
parent 9b5c64f35f
commit 1d96974b99
1 changed files with 1 additions and 1 deletions

View File

@ -1963,7 +1963,7 @@ static void ProcessMode(pugi::xml_node Parent, t_mode* mode, const bool timing_e
mode->packable = mode->parent_pb_type->parent_mode->packable;
}
/* Override if user specify */
mode->packable = ~get_attribute(Parent, "disable_packing", loc_data, ReqOpt::OPTIONAL).as_bool(~mode->packable);
mode->packable = !get_attribute(Parent, "disable_packing", loc_data, ReqOpt::OPTIONAL).as_bool(!mode->packable);
if (false == mode->packable) {
VTR_LOG("mode '%s[%s]' is disabled in packing by user\n",
mode->parent_pb_type->name,