Skip to content

Commit 1fab8eb

Browse files
real-or-randomapoelstra
authored andcommitted
bulletproofs: remove redundant check for nonzero n_commits
1 parent 376d4fa commit 1fab8eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/bulletproofs/main_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ int secp256k1_bulletproof_rangeproof_prove(const secp256k1_context* ctx, secp256
199199
ARG_CHECK(blind != NULL);
200200
ARG_CHECK(value_gen != NULL);
201201
ARG_CHECK(nonce != NULL);
202-
ARG_CHECK(n_commits > 0 && n_commits);
202+
ARG_CHECK(n_commits > 0);
203203
ARG_CHECK(nbits <= 64);
204204
if (nbits < 64) {
205205
for (i = 0; i < n_commits; i++) {

0 commit comments

Comments
 (0)