[ox/mc] Fix VLI encoding to handle negatives

(synced from e4aab88831)
This commit is contained in:
2019-03-16 14:41:43 -05:00
parent d9b4cb75f2
commit e9e076eb88
3 changed files with 39 additions and 23 deletions
-1
View File
@@ -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;