Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
abxh committed Sep 20, 2024
1 parent 7728343 commit 2989369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fpqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ static inline bool JOIN(FPQUEUE_NAME, is_full)(const FPQUEUE_TYPE *self)
*
* @return The max priority value.
*/
static inline VALUE_TYPE JOIN(FPQUEUE_NAME, get_value_w_max_priority)(const FPQUEUE_TYPE *self)
static inline VALUE_TYPE JOIN(FPQUEUE_NAME, get_max)(const FPQUEUE_TYPE *self)
{
assert(self != NULL);
assert(FPQUEUE_IS_EMPTY(self) == false);
Expand All @@ -288,7 +288,7 @@ static inline VALUE_TYPE JOIN(FPQUEUE_NAME, get_value_w_max_priority)(const FPQU
*/
static inline VALUE_TYPE JOIN(FPQUEUE_NAME, peek)(const FPQUEUE_TYPE *self)
{
return JOIN(FPQUEUE_NAME, get_value_w_max_priority)(self);
return JOIN(FPQUEUE_NAME, get_max)(self);
}

/**
Expand Down

0 comments on commit 2989369

Please sign in to comment.