<p>I cherry-picked a fix from <a href="https://github.com/lozhnikov" class="user-mention">@lozhnikov</a> (<a href="https://github.com/mlpack/mlpack/commit/f77416e9ab5bb5d327805f7cb61bf206431ddfed" class="commit-link"><tt>f77416e</tt></a>) from <a href="https://github.com/mlpack/mlpack/pull/556" class="issue-link js-issue-link" data-url="https://github.com/mlpack/mlpack/issues/556" data-id="139432277" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#556</a>.  Basically, my changes to the R tree changing <code>-DBL_MAX</code> to <code>std::numeric_limits&lt;ElemType&gt;::min()</code> was incorrect; I should have used <code>lowest()</code> instead.  This causes failures, but only sometimes, which is why the Travis build didn't catch it and why I didn't see this before now.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/573#issuecomment-196466466">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFDbKKgLRF9EVrPJ-Njh4TzBoeW3_ks5pta21gaJpZM4HwUP4.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/573#issuecomment-196466466"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>