gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lsd0003] branch master updated: Fixed a bug in pack function


From: gnunet
Subject: [lsd0003] branch master updated: Fixed a bug in pack function
Date: Mon, 14 Jun 2021 16:11:37 +0200

This is an automated email from the git hooks/post-receive script.

elias-summermatter pushed a commit to branch master
in repository lsd0003.

The following commit(s) were added to refs/heads/master by this push:
     new 280f17a  Fixed a bug in pack function
280f17a is described below

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

    Fixed a bug in pack function
---
 draft-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
index a482e61..44f377a 100644
--- 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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]