<p>I inspect it in VS2015 and found<br>
<code>warning C4267: 'argument': conversion from 'size_t' to 'const arma::uword', possible loss of data</code> is caused by <code>ARMA_64BIT_WORD</code> is no defined, which results in a <code>typedef u32 uword;</code> in file <code>include\armadillo_bits\typedef_elem.hpp</code></p>

<p>To solve this type of warning, just uncomment the line with <code>#define ARMA_64BIT_WORD<br>
</code> in the file <code>armadillo_bits\config.hpp</code>.</p>

<p>However, this will result in a 8 bytes <code>uword</code>, when casting to a <code>int</code>, which is 4 bytes by default, you still lose data in this procedure.</p>

<p>There will still be many other <code>possible loss of data</code> warning for some casting between unsigned integer and float point, but I don't think this type of data loss can be solved with only a few lines of code.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/554#issuecomment-199283436">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFPsPQmwyNvtat3hnQbRHfVEw4gsxks5pvp_QgaJpZM4HrI9Q.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/554#issuecomment-199283436"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>