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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2020-01-29 17:06:25 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2020-01-31 14:56:20 +0300
commita075f45526eccb218314368859ac4ce9138bd0be (patch)
tree5e57766c5706a8591f80bb8b76902599563d3f9c /intern/mikktspace
parent14ccda75f6313849c5b4376f7e74def24084782e (diff)
Fix more undefined behavior in tangent space computation
Ref D6677
Diffstat (limited to 'intern/mikktspace')
-rw-r--r--intern/mikktspace/mikktspace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/mikktspace/mikktspace.c b/intern/mikktspace/mikktspace.c
index 285529298eb..47bed53ed28 100644
--- a/intern/mikktspace/mikktspace.c
+++ b/intern/mikktspace/mikktspace.c
@@ -1392,7 +1392,7 @@ static void QuickSort(int *pSortBuffer, int iLeft, int iRight, unsigned int uSee
// Random
unsigned int t = uSeed & 31;
- t = (uSeed << t) | (uSeed >> (32 - t));
+ t = rotl(uSeed, t);
uSeed = uSeed + t + 3;
// Random end