[Pkg-bitcoin-commits] [libsecp256k1] 23/37: Remove redundant conditional expression

Jonas Smedegaard dr at jones.dk
Fri Aug 18 11:27:55 UTC 2017


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

js pushed a commit to branch master
in repository libsecp256k1.

commit 2e1ccdca0d506e02adeef03e8eed355edfc6d0da
Author: Dag Robole <dag.robole at gmail.com>
Date:   Thu Jul 13 18:00:03 2017 +0200

    Remove redundant conditional expression
---
 src/ecdsa_impl.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/ecdsa_impl.h b/src/ecdsa_impl.h
index 453bb11..43d0c02 100644
--- a/src/ecdsa_impl.h
+++ b/src/ecdsa_impl.h
@@ -81,8 +81,6 @@ static int secp256k1_der_read_len(const unsigned char **sigp, const unsigned cha
         return -1;
     }
     while (lenleft > 0) {
-        if ((ret >> ((sizeof(size_t) - 1) * 8)) != 0) {
-        }
         ret = (ret << 8) | **sigp;
         if (ret + lenleft > (size_t)(sigend - *sigp)) {
             /* Result exceeds the length of the passed array. */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/libsecp256k1.git



More information about the Pkg-bitcoin-commits mailing list