Change some math macros to constexpr
Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
This commit is contained in:
parent
922348f4c0
commit
39d429e497
15 changed files with 85 additions and 77 deletions
|
|
@ -872,7 +872,7 @@ Vector<uint8_t> Voxelizer::get_sdf_3d_image() const {
|
|||
if (d == 0) {
|
||||
w[i] = 0;
|
||||
} else {
|
||||
w[i] = MIN(d, 254) + 1;
|
||||
w[i] = MIN(d, 254u) + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue