shithub: riscv

Download patch

ref: 858893ff8ff8d3abd06742276bcb794f3422bab8
parent: e94d21ee3a2d7d053899d490b115ba763d0a1bc2
author: rodri <rgl@antares-labs.eu>
date: Wed Dec 20 06:38:22 EST 2023

libgeometry: fix typo from previous commit

--- a/sys/src/libgeometry/matrix.c
+++ b/sys/src/libgeometry/matrix.c
@@ -99,7 +99,7 @@
 double
 cofactorm(Matrix m, int row, int col)
 {
-	return minorm(m, row, col)*((row+col)&1 == 0? 1: -1);
+	return minorm(m, row, col)*((row+col & 1) == 0? 1: -1);
 }
 
 void
@@ -272,7 +272,7 @@
 double
 cofactorm3(Matrix3 m, int row, int col)
 {
-	return minorm3(m, row, col)*((row+col)&1 == 0? 1: -1);
+	return minorm3(m, row, col)*((row+col & 1) == 0? 1: -1);
 }
 
 void