[Debian-med-packaging] Bug#1066998: sift FTBFS fixup
Nilesh Patra
nilesh at fsfe.org
Sun Dec 8 23:25:20 GMT 2024
Control: tags -1 patch
The below patch fixes this FTBFS.
diff --git a/src/Matrix_Info.c b/src/Matrix_Info.c
index cd44d22..a962f5d 100644
--- a/src/Matrix_Info.c
+++ b/src/Matrix_Info.c
@@ -905,21 +905,6 @@ normalize_matrix (Matrix* matrix)
}
} /* end of normalize_matrix */
-void
-allow_min_and_above (Matrix* matrix)
-{
- int min_aa, pos, aa;
-
- assert (matrix->block != NULL);
-
- for (pos = 0; pos < matrix->width; pos++) {
- min_aa = min_aa_in_column (matrix, pos);
- for (aa = 1; aa < AAS; aa++) {
- matrix->weights[aa][pos] -= min_aa;
- }
- }
-}
-
int
min_aa_in_column (Matrix * matrix, int pos)
{
@@ -936,6 +921,21 @@ min_aa_in_column (Matrix * matrix, int pos)
return min_aa;
}
+void
+allow_min_and_above (Matrix* matrix)
+{
+ int min_aa, pos, aa;
+
+ assert (matrix->block != NULL);
+
+ for (pos = 0; pos < matrix->width; pos++) {
+ min_aa = min_aa_in_column (matrix, pos);
+ for (aa = 1; aa < AAS; aa++) {
+ matrix->weights[aa][pos] -= min_aa;
+ }
+ }
+}
+
static void pssm_ratio_mutated_to_normal (Matrix* matrix, double threshold)
{
int pos, normal_aa, aa;
More information about the Debian-med-packaging
mailing list