From 3e6e73460544602d30821f5bd8ba60ba84c59b1f Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 21 Oct 2017 21:27:12 +0200 Subject: [PATCH] Fix misleading comment --- src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c b/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c index 9375274d..0dd50048 100644 --- a/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c +++ b/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c @@ -439,8 +439,8 @@ fe_isnegative(const fe f) } /* - return 1 if f == 0 - return 0 if f != 0 + return -1 if f == 0 + return 0 if f != 0 * Preconditions: |f| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.