This is an automated email from the ASF dual-hosted git repository.

kmccusker pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-c.git


The following commit(s) were added to refs/heads/develop by this push:
     new bebf136  Fixes equals issue in FP48 macro. Current template 
incorrectly compares 'b' component twic and ignores 'c'.
     new 72ae03e  Merge pull request #42 from paulgoleary/develop
bebf136 is described below

commit bebf136c2681cf721938fa249cae9289f87b5c62
Author: Paul O'Leary <[email protected]>
AuthorDate: Thu Aug 22 10:05:21 2019 -0700

    Fixes equals issue in FP48 macro. Current template incorrectly compares 'b' 
component twic and ignores 'c'.
---
 src/fp48.c.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fp48.c.in b/src/fp48.c.in
index cc5394e..a7fd7d5 100644
--- a/src/fp48.c.in
+++ b/src/fp48.c.in
@@ -105,7 +105,7 @@ void FP48_YYY_zero(FP48_YYY *w)
 /* SU= 16 */
 int FP48_YYY_equals(FP48_YYY *x,FP48_YYY *y)
 {
-    if (FP16_YYY_equals(&(x->a),&(y->a)) && FP16_YYY_equals(&(x->b),&(y->b)) 
&& FP16_YYY_equals(&(x->b),&(y->b)))
+    if (FP16_YYY_equals(&(x->a),&(y->a)) && FP16_YYY_equals(&(x->b),&(y->b)) 
&& FP16_YYY_equals(&(x->c),&(y->c)))
         return 1;
     return 0;
 }

Reply via email to