Browse Source

small potential valgrind issue

tristangurtler 2 years ago
parent
commit
25c935007c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bgn2/src/Curvepoint.cpp

+ 2 - 2
bgn2/src/Curvepoint.cpp

@@ -375,7 +375,7 @@ size_t CurvepointHash::operator()(const Curvepoint& x) const
         return 0;
     }
 
-    size_t retval;
+    size_t retval = 0;
     std::hash<double> hasher;
 
     Curvepoint affine_x = x;
@@ -397,7 +397,7 @@ size_t TwistpointHash::operator()(const Twistpoint& x) const
         return 0;
     }
 
-    size_t retval;
+    size_t retval = 0;
     std::hash<double> hasher;
 
     Twistpoint affine_x = x;