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; } /* ************************************************************************ */