anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / science / electronics / hal-hardware-analyzer / 4.4.1-newer-spdlog-fmt-compat.patch
blob016e744156444befc83b1ca42cfd46246eab87c0
1 compatibility with newer spdlog/fmt versions
3 diff --git a/plugins/module_identification/src/api/module_identification.cpp b/plugins/module_identification/src/api/module_identification.cpp
4 index 808875e8a68..3cf3cf1fb8b 100644
5 --- a/plugins/module_identification/src/api/module_identification.cpp
6 +++ b/plugins/module_identification/src/api/module_identification.cpp
7 @@ -406,7 +406,7 @@ namespace hal
9 const u32 num_threads = std::min(config.m_max_thread_count, std::thread::hardware_concurrency() - 1);
11 - log_info("module_identification", "running with {} threads and {} multithreading priority", num_threads, config.m_multithreading_priority);
12 + log_info("module_identification", "running with {} threads and {} multithreading priority", num_threads, fmt::underlying(config.m_multithreading_priority));
14 auto stats = Statistics();
16 diff --git a/plugins/z3_utils/src/simplification.cpp b/plugins/z3_utils/src/simplification.cpp
17 index d64cab665f2..561fa7f1a23 100644
18 --- a/plugins/z3_utils/src/simplification.cpp
19 +++ b/plugins/z3_utils/src/simplification.cpp
20 @@ -617,7 +617,7 @@ namespace hal
21 return false;
23 default: {
24 - log_error("z3_utils", "commutative check not implemeted for type {}!", t);
25 + log_error("z3_utils", "commutative check not implemeted for type {}!", fmt::underlying(t));
26 return false;