The packed_uintuint32_t() operator will truncate values exceeding four bytes. In practice, this is probably never a concern for the current packed_uint<8> use cases (all KTX2), so this work could be considered a compiler warning fix.
I first attempted to add a uint64_t() operator to packed_uint, but that caused a bunch of ambiguous operator compiler errors. There's probably a way to implement this change by updating packed_uint and doing some fancy templating, but my attempts to do so were unsuccessful (and complex).
The
packed_uint
uint32_t()
operator will truncate values exceeding four bytes. In practice, this is probably never a concern for the currentpacked_uint<8>
use cases (all KTX2), so this work could be considered a compiler warning fix.I first attempted to add a
uint64_t()
operator topacked_uint
, but that caused a bunch of ambiguous operator compiler errors. There's probably a way to implement this change by updatingpacked_uint
and doing some fancy templating, but my attempts to do so were unsuccessful (and complex).