Skip to content

Commit

Permalink
Fix: abs --> fabs, vec2 only works with floats, so use fabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi688 committed Apr 18, 2024
1 parent 8c5bda5 commit 434fbe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/vec2.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ HPML_API vec2_t vec2_abs(vec2_t v)
{
return VEC2
{
abs(v.x),
abs(v.y)
fabs(v.x),
fabs(v.y)
};
}

Expand Down

0 comments on commit 434fbe4

Please sign in to comment.