Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-01-22 16:27:58 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-01-22 16:37:19 +0300
commit0f69026b1c3c07b203aeba658048f1129e41b116 (patch)
tree189163080d2d8a1eb8d9c7c7aa508a34f341df88
parent8a2d09eb9f5a5804ded16900523087a312ffa302 (diff)
Fix windows building (log10)
Error: math_base_inline.c(402): error C2668: 'log10' : ambiguous call to overloaded function
-rw-r--r--source/blender/blenlib/intern/math_base_inline.c2
1 files changed, 1 insertions, 1 deletions
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.