lsd0003

LSD0003: Set Union
Log | Files | Refs | README

commit 280f17a5e59200b8d02d4a27a99b880e34c5dd9f
parent 01f783fdf0bc3a93b3f65cab90356ee04600e5c5
Author: Elias Summermatter <elias.summermatter@seccom.ch>
Date:   Mon, 14 Jun 2021 16:08:51 +0200

Fixed a bug in pack function

Diffstat:
Mdraft-summermatter-set-union.xml | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/draft-summermatter-set-union.xml b/draft-summermatter-set-union.xml @@ -2291,9 +2291,10 @@ FUNCTION pack_counter(ibf, offset, count) END FOR # Write the last partial packed byte to the buffer - # TODO: should we not limit this to the case where store_bits > 0? - buffer[byte_ctr] = store << (8 - store_bits) - byte_ctr = byte_ctr + 1 + IF store_bits > 0 + buffer[byte_ctr] = store << (8 - store_bits) + byte_ctr = byte_ctr + 1 + END IF RETURN buffer FUNCTION END