hal-hardware-analyzer: fix darwin build (#394802)

authored by h7x4 and committed by GitHub 86d3b3c2 9c39e90b

+14
+1
pkgs/applications/science/electronics/hal-hardware-analyzer/default.nix
··· 47 47 hash = "sha256-bjbW4pr04pP0TCuSdzPcV8h6LbLWMvdGSf61RL9Ju6E="; 48 48 }) 49 49 ./4.4.1-newer-spdlog-fmt-compat.patch 50 + ./resynthesis-fix-narrowing-conversion.patch 50 51 ]; 51 52 52 53 # make sure bundled dependencies don't get in the way - install also otherwise
+13
pkgs/applications/science/electronics/hal-hardware-analyzer/resynthesis-fix-narrowing-conversion.patch
··· 1 + diff --git a/plugins/resynthesis/src/resynthesis.cpp b/plugins/resynthesis/src/resynthesis.cpp 2 + index 7a7e404114f..f2889667af8 100644 3 + --- a/plugins/resynthesis/src/resynthesis.cpp 4 + +++ b/plugins/resynthesis/src/resynthesis.cpp 5 + @@ -1058,7 +1058,7 @@ namespace hal 6 + // delete the created directory and the contained files 7 + std::filesystem::remove_all(base_path); 8 + 9 + - return OK(subgraph.size()); 10 + + return OK(static_cast<unsigned int>(subgraph.size())); 11 + } 12 + 13 + Result<u32> resynthesize_subgraph_of_type(Netlist* nl, const std::vector<const GateType*>& gate_types, GateLibrary* target_gl)