[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-scheme] 121/324: netstruct: Correct argument order to slice-uN-s
From: |
gnunet |
Subject: |
[gnunet-scheme] 121/324: netstruct: Correct argument order to slice-uN-set!. |
Date: |
Tue, 21 Sep 2021 13:22:41 +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 a8f4968074575dbaabe61e771e6843bed1812760
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sat May 29 22:19:20 2021 +0200
netstruct: Correct argument order to slice-uN-set!.
The endianity was in an incorrect position, leading
to a runtime error. Tests will be added in a follow-up
patch.
* gnu/gnunet/netstruct/procedural.scm
(define-unsigned-N-bytes): Place the endianity before the
number, in the call to slice-set!.
---
gnu/gnunet/netstruct/procedural.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/gnunet/netstruct/procedural.scm
b/gnu/gnunet/netstruct/procedural.scm
index 7278f68..d642437 100644
--- a/gnu/gnunet/netstruct/procedural.scm
+++ b/gnu/gnunet/netstruct/procedural.scm
@@ -384,14 +384,14 @@ accepting a bytevector slice and a value."
(unsigned-N-bytes
length
(cute slice-ref <> 0 (endianness big))
- (cute slice-set! <> 0 (endianness big) <>)
+ (cute slice-set! <> 0 <> (endianness big))
#:properties '((endianness . big)
(integer-type . unsigned))))
(define name-little
(unsigned-N-bytes
length
(cute slice-ref <> 0 (endianness little))
- (cute slice-set! <> 0 (endianness little) <>)
+ (cute slice-set! <> 0 <> (endianness little))
#:properties '((endianness . little)
(integer-type . unsigned))))))))
(define-syntax define-unsigned-N-bytes*
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet-scheme] 101/324: utils: hat-let: Add <--, a variant on <-., (continued)
- [gnunet-scheme] 101/324: utils: hat-let: Add <--, a variant on <-., gnunet, 2021/09/21
- [gnunet-scheme] 89/324: doc: Document current list of defined GNUnet network structures., gnunet, 2021/09/21
- [gnunet-scheme] 94/324: bv-slice: Correct offset calculation in slice-slice., gnunet, 2021/09/21
- [gnunet-scheme] 98/324: utils: Define module for defining platform-specifing enumerations., gnunet, 2021/09/21
- [gnunet-scheme] 95/324: util: Allow splitting and constructing ancillary messages., gnunet, 2021/09/21
- [gnunet-scheme] 103/324: config: parser: parse ${variable} expansions., gnunet, 2021/09/21
- [gnunet-scheme] 105/324: config: value-parser: Parse values in configuration files., gnunet, 2021/09/21
- [gnunet-scheme] 107/324: tests: message-io: Unbreak., gnunet, 2021/09/21
- [gnunet-scheme] 106/324: doc: Classify modules., gnunet, 2021/09/21
- [gnunet-scheme] 120/324: netstruct syntactic: Fix error when field is constant., gnunet, 2021/09/21
- [gnunet-scheme] 121/324: netstruct: Correct argument order to slice-uN-set!.,
gnunet <=
- [gnunet-scheme] 113/324: hat-let: Avoid having to import '_' from (rnrs base)., gnunet, 2021/09/21
- [gnunet-scheme] 112/324: config: parser: Fix typo in documentation., gnunet, 2021/09/21
- [gnunet-scheme] 93/324: doc: Some tips on testing., gnunet, 2021/09/21
- [gnunet-scheme] 104/324: config: Implement variable expansion., gnunet, 2021/09/21
- [gnunet-scheme] 129/324: netstruct: New promised tests., gnunet, 2021/09/21
- [gnunet-scheme] 99/324: config: Parse configuration lines into one of several types., gnunet, 2021/09/21
- [gnunet-scheme] 115/324: hat-let: Drop incorrect copyright notices., gnunet, 2021/09/21
- [gnunet-scheme] 125/324: netstruct: Only select the relevant part for writing., gnunet, 2021/09/21
- [gnunet-scheme] 127/324: netstruct: Recurse in ‘part’; allow fields within fields., gnunet, 2021/09/21
- [gnunet-scheme] 109/324: doc: Update ROADMAP.org., gnunet, 2021/09/21