gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet-scheme] 119/324: netstruct: Correct size of u8.


From: gnunet
Subject: [gnunet-scheme] 119/324: netstruct: Correct size of u8.
Date: Tue, 21 Sep 2021 13:22:39 +0200

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

maxime-devos pushed a commit to branch master
in repository gnunet-scheme.

commit e91792d38dd7117a8cf522150c29f4ed9c342b46
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sat May 29 19:27:55 2021 +0200

    netstruct: Correct size of u8.
    
    Previously, it was 8. But that's the number of bits in an octet,
    not the number of octets! Correct it. A test will be added in
    the next patch.
    
    * gnu/gnunet/netstruct/procedural.scm (u8): Correct size of
      primitive.
---
 gnu/gnunet/netstruct/procedural.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/gnunet/netstruct/procedural.scm 
b/gnu/gnunet/netstruct/procedural.scm
index 0db2d6d..7278f68 100644
--- a/gnu/gnunet/netstruct/procedural.scm
+++ b/gnu/gnunet/netstruct/procedural.scm
@@ -403,7 +403,7 @@ accepting a bytevector slice and a value."
               (length slice-ref slice-set!) (name-big name-little))
             ...)))))
 
-    (define u8 (make-netprimitive 8 slice-u8-ref slice-u8-set!
+    (define u8 (make-netprimitive 1 slice-u8-ref slice-u8-set!
                                  #:properties '((integer-type . unsigned))))
 
     (define-unsigned-N-bytes*

-- 
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]