From 62008fc99543c8c87e6a38bea11ff1592b1aac16 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Tue, 10 Dec 2024 11:10:25 -0500 Subject: [PATCH] add return --- gtsam/discrete/DiscreteFactorGraph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtsam/discrete/DiscreteFactorGraph.cpp b/gtsam/discrete/DiscreteFactorGraph.cpp index ebba93382..ec6dac2fc 100644 --- a/gtsam/discrete/DiscreteFactorGraph.cpp +++ b/gtsam/discrete/DiscreteFactorGraph.cpp @@ -130,6 +130,8 @@ namespace gtsam { // Normalize the product factor to prevent underflow. product = product / (*normalization); + + return product; } /* ************************************************************************ */