From 9cc0f00ad897ef86133aa4e30ec28bd91a9b9eb5 Mon Sep 17 00:00:00 2001 From: Dengda98 Date: Tue, 4 Mar 2025 12:32:20 +0800 Subject: [PATCH] FIX: change `p***_qwv` to `***_qwv` when call `write_stats` in `ptam.c`, to avoid segfault --- pygrt/C_extension/src/dynamic/ptam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygrt/C_extension/src/dynamic/ptam.c b/pygrt/C_extension/src/dynamic/ptam.c index c732fce9..a65f7587 100755 --- a/pygrt/C_extension/src/dynamic/ptam.c +++ b/pygrt/C_extension/src/dynamic/ptam.c @@ -172,7 +172,7 @@ void PTA_method( if(fstats[ir]!=NULL){ write_stats( fstats[ir], k, - pEXP_qwv, pVF_qwv, pHF_qwv, pDC_qwv, + EXP_qwv, VF_qwv, HF_qwv, DC_qwv, EXP_J3[ir][2], VF_J3[ir][2], HF_J3[ir][2], DC_J3[ir][2]); }