mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Rewrote .PRUSA file parser from wxWidgets zip to miniz.
Added tracing for mesh repair.
This commit is contained in:
parent
85bc3af88a
commit
8945763221
5 changed files with 327 additions and 353 deletions
|
@ -117,10 +117,10 @@ inline uint64_t next_highest_power_of_2(uint64_t v)
|
|||
inline size_t next_highest_power_of_2(size_t v)
|
||||
{
|
||||
#if SSIZE_MAX == 9223372036854775807
|
||||
static_assert(sizeof(size_t) == sizeof(uint64_t));
|
||||
static_assert(sizeof(size_t) == sizeof(uint64_t), "sizeof(size_t) == sizeof(uint64_t)");
|
||||
return next_highest_power_of_2(uint64_t(v));
|
||||
#else
|
||||
static_assert(sizeof(size_t) == sizeof(uint32_t));
|
||||
static_assert(sizeof(size_t) == sizeof(uint32_t), "sizeof(size_t) == sizeof(uint32_t)");
|
||||
return next_highest_power_of_2(uint32_t(v));
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue