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:
authorCampbell Barton <ideasman42@gmail.com>2013-05-24 14:15:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-24 14:15:20 +0400
commit22f170f487b70e7613acfbe13923a5bef4bfd536 (patch)
tree98663633af0f55ee197e7c28e4d0404b1c00c2e5 /source/blender/freestyle
parent5fdf868d802d4db83910de641e9409f316b8ea34 (diff)
fix for building on osx with recent freestyle bugfix.
Diffstat (limited to 'source/blender/freestyle')
-rw-r--r--source/blender/freestyle/intern/system/PseudoNoise.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/system/PseudoNoise.cpp b/source/blender/freestyle/intern/system/PseudoNoise.cpp
index 538460dc1e9..634274874d3 100644
--- a/source/blender/freestyle/intern/system/PseudoNoise.cpp
+++ b/source/blender/freestyle/intern/system/PseudoNoise.cpp
@@ -46,7 +46,7 @@ void PseudoNoise::init(long seed)
real PseudoNoise::linearNoise(real x)
{
real tmp;
- int i = abs(modf(x, &tmp)) * NB_VALUE_NOISE;
+ int i = abs((int)(modf(x, &tmp) * NB_VALUE_NOISE));
real x1 = _values[i], x2 = _values[(i + 1) % NB_VALUE_NOISE];
real t = modf(x * NB_VALUE_NOISE, &tmp);
return x1 * (1 - t) + x2 * t;
@@ -64,7 +64,7 @@ static real LanczosWindowed(real t)
real PseudoNoise::smoothNoise(real x)
{
real tmp;
- int i = abs(modf(x, &tmp)) * NB_VALUE_NOISE;
+ int i = abs((int)(modf(x, &tmp) * NB_VALUE_NOISE));
int h = i - 1;
if (h < 0) {
h = NB_VALUE_NOISE + h;