Skip to content

Commit

Permalink
fix comparison operators of Event
Browse files Browse the repository at this point in the history
  • Loading branch information
Tessa Todorowski committed Oct 14, 2024
1 parent 7b2bb17 commit 734dc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/lo2s/perf/event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Event

friend bool operator<(const Event& lhs, const Event& rhs)
{
return memcmp(&lhs.attr_, &rhs.attr_, sizeof(struct perf_event_attr));
return memcmp(&rhs.attr_, &lhs.attr_, sizeof(struct perf_event_attr));
}

friend bool operator>(const Event& lhs, const Event& rhs)
Expand Down

0 comments on commit 734dc8d

Please sign in to comment.