From ace7c1b9abe6fe2e73a06c81ade93b6abf28bae6 Mon Sep 17 00:00:00 2001 From: John Halley Gotway Date: Mon, 7 Oct 2024 16:26:17 +0000 Subject: [PATCH] Per #2887, reset Npairs = 0 for ContingencyTable::zero_out() --- src/libcode/vx_statistics/contable.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcode/vx_statistics/contable.cc b/src/libcode/vx_statistics/contable.cc index 5bb40afcd..9fd8dcfae 100644 --- a/src/libcode/vx_statistics/contable.cc +++ b/src/libcode/vx_statistics/contable.cc @@ -123,6 +123,7 @@ void ContingencyTable::assign(const ContingencyTable & t) { void ContingencyTable::zero_out() { fill(E.begin(), E.end(), 0.0); + Npairs = 0; return; }