diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-26 03:04:44 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-26 03:09:15 +0300 |
commit | 8a68f4f80814a28d68055a0ae0b22a7efe1c2619 (patch) | |
tree | c89d4c3343836b0b8321be1beb55d7b547a6d6a3 /source/blender/blenlib | |
parent | 15f3cf7f8f956a6372b6a99788b622946ba3d1e5 (diff) |
Cleanup: replace unsigned with uint, use function style casts for C++
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/math_solvers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/math_solvers.c b/source/blender/blenlib/intern/math_solvers.c index b5650410a70..1196c0bed7f 100644 --- a/source/blender/blenlib/intern/math_solvers.c +++ b/source/blender/blenlib/intern/math_solvers.c @@ -45,7 +45,7 @@ bool BLI_tridiagonal_solve( return false; } - size_t bytes = sizeof(double) * (unsigned)count; + size_t bytes = sizeof(double) * (uint)count; double *c1 = (double *)MEM_mallocN(bytes * 2, "tridiagonal_c1d1"); double *d1 = c1 + count; @@ -112,7 +112,7 @@ bool BLI_tridiagonal_solve_cyclic( return BLI_tridiagonal_solve(a, b, c, d, r_x, count); } - size_t bytes = sizeof(float) * (unsigned)count; + size_t bytes = sizeof(float) * (uint)count; float *tmp = (float *)MEM_mallocN(bytes * 2, "tridiagonal_ex"); float *b2 = tmp + count; |