diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-01-29 17:06:25 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-01-31 14:56:20 +0300 |
commit | a075f45526eccb218314368859ac4ce9138bd0be (patch) | |
tree | 5e57766c5706a8591f80bb8b76902599563d3f9c | |
parent | 14ccda75f6313849c5b4376f7e74def24084782e (diff) |
Fix more undefined behavior in tangent space computation
Ref D6677
-rw-r--r-- | intern/mikktspace/mikktspace.c | 2 |
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 |