Skip to content

Commit

Permalink
Fix 32-bit Windows warning with explicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
derekbruening committed Oct 28, 2024
1 parent 466635b commit d930ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/drcachesim/tools/schedule_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class schedule_stats_t : public analysis_tool_t {
{
// Ensure {workload_id=X, tid=Y} doesn't always hash the same as
// {workload_id=Y, tid=X} by avoiding a simple symmetric wid^tid.
return std::hash<size_t>()(wt.workload_id ^ wt.tid) ^
return std::hash<size_t>()(static_cast<size_t>(wt.workload_id ^ wt.tid)) ^
std::hash<memref_tid_t>()(wt.tid);
}
};
Expand Down

0 comments on commit d930ce0

Please sign in to comment.