[mlpack-git] [mlpack/mlpack] Fixed an error in MidpointSplit that may lead to a segfault (#741)

lozhnikov notifications at github.com
Wed Jul 27 11:35:40 EDT 2016


>        }
>      }
>  
>      delete[] ranges;
>    }
>  
> +  assert(splitVal != DBL_MAX);
> +
>    if (maxWidth == 0) // All these points are the same.  We can't split.
>      return false;

You're right, that is much better.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/741/files/a659b90e57931d0377167cb980602ed565b44536#r72463417
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160727/30a6e4a4/attachment.html>


More information about the mlpack-git mailing list