[Bf-blender-cvs] [0f69026b1c3] master: Fix windows building (log10)
Dalai Felinto
noreply at git.blender.org
Mon Jan 22 14:40:18 CET 2018
Commit: 0f69026b1c3c07b203aeba658048f1129e41b116
Author: Dalai Felinto
Date: Mon Jan 22 11:27:58 2018 -0200
Branches: master
https://developer.blender.org/rB0f69026b1c3c07b203aeba658048f1129e41b116
Fix windows building (log10)
Error: math_base_inline.c(402): error C2668: 'log10' : ambiguous call to
overloaded function
===================================================================
M source/blender/blenlib/intern/math_base_inline.c
===================================================================
diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c
index a0c13e14e72..2f5b0f420b1 100644
--- a/source/blender/blenlib/intern/math_base_inline.c
+++ b/source/blender/blenlib/intern/math_base_inline.c
@@ -399,7 +399,7 @@ MINLINE int integer_digits_d(const double d)
MINLINE int integer_digits_i(const int i)
{
- return (int)log10(i) + 1;
+ return (int)log10((double)i) + 1;
}
/* Internal helpers for SSE2 implementation.
More information about the Bf-blender-cvs
mailing list