cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=bc244e7a18e4538c8120fd909a9db54b03fcb914

commit bc244e7a18e4538c8120fd909a9db54b03fcb914
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Jun 8 17:58:28 2015 +0200

    eina: fix copy and paster error detected by Coverity.
    
    CID 1302701
---
 src/lib/eina/eina_quaternion.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/eina/eina_quaternion.c b/src/lib/eina/eina_quaternion.c
index dbf68be..2ef0ede 100644
--- a/src/lib/eina/eina_quaternion.c
+++ b/src/lib/eina/eina_quaternion.c
@@ -82,7 +82,7 @@ eina_quaternion_f16p16_mul(Eina_Quaternion_F16p16 *out,
    out->z = eina_f16p16_add(eina_f16p16_add(eina_f16p16_mul(a->w, b->z),
                                             eina_f16p16_mul(a->x, b->y)),
                             eina_f16p16_sub(eina_f16p16_mul(a->z, b->w),
-                                            eina_f16p16_mul(a->y, b->y)));
+                                            eina_f16p16_mul(a->y, b->x)));
 }
 
 EAPI void
@@ -377,7 +377,7 @@ eina_quaternion_mul(Eina_Quaternion *out,
    out->w = a->w * b->w - a->x * b->x - a->y * b->y - a->z * b->z;
    out->x = a->w * b->x + a->x * b->w + a->y * b->z - a->z * b->y;
    out->y = a->w * b->y - a->x * b->z + a->y * b->w + a->z * b->x;
-   out->z = a->w * b->z + a->x * b->y - a->y * b->y + a->z * b->w;
+   out->z = a->w * b->z + a->x * b->y - a->y * b->x + a->z * b->w;
 }
 
 EAPI void

-- 


Reply via email to