mirror of
https://github.com/recp/cglm.git
synced 2025-10-03 16:51:35 +00:00
suppress warnings: C4244: 'function': conversion from 'int' to 'float'
This commit is contained in:
@@ -160,7 +160,7 @@ glm_ivec3_norm2(ivec3 v) {
|
||||
CGLM_INLINE
|
||||
int
|
||||
glm_ivec3_norm(ivec3 v) {
|
||||
return (int)sqrtf(glm_ivec3_norm2(v));
|
||||
return (int)sqrtf((float)glm_ivec3_norm2(v));
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user