gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet-scheme] 94/324: bv-slice: Correct offset calculation in slice-sl


From: gnunet
Subject: [gnunet-scheme] 94/324: bv-slice: Correct offset calculation in slice-slice.
Date: Tue, 21 Sep 2021 13:22:14 +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 e92ef4b52dd9ceae20bfd7aa6cc5ecec94007649
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sun Mar 21 13:17:39 2021 +0100

    bv-slice: Correct offset calculation in slice-slice.
    
    * gnu/gnunet/utils/bv-slice.scm (slice-slice):
      Add the requested additional offset to the original
      offset when two arguments are passed.  Previously,
      the original offset was ignored.
---
 gnu/gnunet/utils/bv-slice.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/gnunet/utils/bv-slice.scm b/gnu/gnunet/utils/bv-slice.scm
index a4156b9..7d13b08 100644
--- a/gnu/gnunet/utils/bv-slice.scm
+++ b/gnu/gnunet/utils/bv-slice.scm
@@ -80,7 +80,7 @@
                    (<= 0 offset)
                    (<= offset (slice-length slice))))
        (%make-slice (slice-bv slice)
-                   offset
+                   (+ offset (slice-offset slice))
                    (- (slice-length slice) offset)
                    (slice-capability-bits slice)))
       ((slice offset length)

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