From 53764f3dd15bec4e7a76dc2f642ed4b3af17a210 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ne=C4=8Dada?= Date: Thu, 23 Jun 2022 09:12:11 +0300 Subject: [PATCH] Fix qpms_vswf_set_reindex(). Stupid typo with possibly serious consequences... --- qpms/vswf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qpms/vswf.c b/qpms/vswf.c index 37e728a..1d0e349 100644 --- a/qpms/vswf.c +++ b/qpms/vswf.c @@ -131,7 +131,7 @@ size_t *qpms_vswf_set_reindex(const qpms_vswf_set_spec_t *small, const qpms_vswf while(big_pairs[bi].ui < small_pairs[si].ui) ++bi; if(big_pairs[bi].ui == small_pairs[si].ui) - r[small_pairs[si].i_orig] = big_pairs[si].i_orig; + r[small_pairs[si].i_orig] = big_pairs[bi].i_orig; else r[small_pairs[si].i_orig] = ~(size_t)0; } -- 2.11.4.GIT