[ox/mc] Fix VLI encoding to handle negatives
This commit is contained in:
1
deps/ox/src/ox/mc/write.hpp
vendored
1
deps/ox/src/ox/mc/write.hpp
vendored
@@ -142,7 +142,6 @@ Error MetalClawWriter::appendInteger(I val) {
|
||||
if (val) {
|
||||
if (m_buffIt + sizeof(I) < m_buffLen) {
|
||||
LittleEndian<I> leVal = val;
|
||||
mc::encodeInteger(val);
|
||||
// bits needed to represent number factoring in space possibly needed
|
||||
// for signed bit
|
||||
const auto bits = mc::highestBit(val) + (ox::is_signed<I> ? 1 : 0) / 8;
|
||||
|
||||
Reference in New Issue
Block a user