diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-02-27 13:14:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-02-27 13:14:17 +0300 |
commit | 2026179bb20e2220459129dfced535bee0983cbf (patch) | |
tree | e61a215fe6a10e7da68ef249ef4a948ab51fbb53 /source/blender | |
parent | a7ef3126115e907e03efac2297eea725017477f2 (diff) |
Collada: Use floating point version of abs()
Avoids implicit cast of float to int.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/collada/collada_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/collada/collada_utils.h b/source/blender/collada/collada_utils.h index bbe36f2999c..0069b4d4871 100644 --- a/source/blender/collada/collada_utils.h +++ b/source/blender/collada/collada_utils.h @@ -105,7 +105,7 @@ extern int bc_set_layer(int bitfield, int layer, bool enable); extern int bc_set_layer(int bitfield, int layer); inline bool bc_in_range(float a, float b, float range) { - return abs(a - b) < range; + return fabsf(a - b) < range; } void bc_copy_m4_farray(float r[4][4], float *a); void bc_copy_farray_m4(float *r, float a[4][4]); |