Skip to content

Fix build: wrap logged enums with fmt::underlying #605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ namespace hal

const u32 num_threads = std::min(config.m_max_thread_count, std::thread::hardware_concurrency() - 1);

log_info("module_identification", "running with {} threads and {} multithreading priority", num_threads, config.m_multithreading_priority);
log_info("module_identification", "running with {} threads and {} multithreading priority", num_threads, fmt::underlying(config.m_multithreading_priority));

auto stats = Statistics();

Expand Down Expand Up @@ -561,4 +561,4 @@ namespace hal
return execute_on_structural_candidates(base_to_structural_candidates, config);
}
} // namespace module_identification
} // namespace hal
} // namespace hal
2 changes: 1 addition & 1 deletion plugins/z3_utils/src/simplification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ namespace hal
return false;

default: {
log_error("z3_utils", "commutative check not implemeted for type {}!", t);
log_error("z3_utils", "commutative check not implemeted for type {}!", fmt::underlying(t));
return false;
}
}
Expand Down