Skip to content

Commit

Permalink
fix isnan and isinf
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Apr 7, 2018
1 parent 58f0043 commit 1143055
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/cglm/vec3-ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ glm_vec_min(vec3 v) {
CGLM_INLINE
bool
glm_vec_isnan(vec3 v) {
return !(isnan(v[0]) || isnan(v[1]) || isnan(v[2]));
return isnan(v[0]) || isnan(v[1]) || isnan(v[2]);
}

/*!
Expand All @@ -181,7 +181,7 @@ glm_vec_isnan(vec3 v) {
CGLM_INLINE
bool
glm_vec_isinf(vec3 v) {
return !(isinf(v[0]) || isinf(v[1]) || isinf(v[2]));
return isinf(v[0]) || isinf(v[1]) || isinf(v[2]);
}

/*!
Expand Down
4 changes: 2 additions & 2 deletions include/cglm/vec4-ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ glm_vec4_min(vec4 v) {
CGLM_INLINE
bool
glm_vec4_isnan(vec4 v) {
return !(isnan(v[0]) || isnan(v[1]) || isnan(v[2]) || isnan(v[3]));
return isnan(v[0]) || isnan(v[1]) || isnan(v[2]) || isnan(v[3]);
}

/*!
Expand All @@ -195,7 +195,7 @@ glm_vec4_isnan(vec4 v) {
CGLM_INLINE
bool
glm_vec4_isinf(vec4 v) {
return !(isinf(v[0]) || isinf(v[1]) || isinf(v[2]) || isinf(v[3]));
return isinf(v[0]) || isinf(v[1]) || isinf(v[2]) || isinf(v[3]);
}

/*!
Expand Down

0 comments on commit 1143055

Please sign in to comment.