<div class="markdown_content"><hr/>
<p><strong> <a class="alink" href="https://sourceforge.net/p/pd-gem/bugs/246/">[bugs:#246]</a> compile issue in pix_colorclassify.cpp</strong></p>
<p><strong>Status:</strong> open<br/>
<strong>OS:</strong> linux<br/>
<strong>Release:</strong> unknown<br/>
<strong>Created:</strong> Mon May 23, 2016 11:05 PM UTC by Albert Graef<br/>
<strong>Last Updated:</strong> Mon May 23, 2016 11:05 PM UTC<br/>
<strong>Owner:</strong> nobody<br/>
<strong>Attachments:</strong></p>
<ul>
<li><a class="" href="https://sourceforge.net/p/pd-gem/bugs/246/attachment/Gem-pix_colorclassify.patch">Gem-pix_colorclassify.patch</a> (798 Bytes; text/x-patch)</li>
</ul>
<p>I'm getting these errors when compiling Gem on Arch with gcc 6.1.1:</p>
<div class="codehilite"><pre>pix_colorclassify.cpp:156:1: error: narrowing conversion of ‘1.275e+2’ from ‘double’ to ‘unsigned char’ inside { } [-Wnarrowing]
 };
 ^
pix_colorclassify.cpp:170:1: error: narrowing conversion of ‘1.275e+2’ from ‘double’ to ‘unsigned char’ inside { } [-Wnarrowing]
 };
 ^
pix_colorclassify.cpp:184:1: error: narrowing conversion of ‘1.275e+2’ from ‘double’ to ‘unsigned char’ inside { } [-Wnarrowing]
 };
 ^
Makefile:1102: recipe for target 'libPixes_la-pix_colorclassify.lo' failed
</pre></div>


<p>Looks like the latest gcc is a little picky here. :) But maybe <code>0.5*255</code> could just be replaced with 127? Suggested patch attached.</p>
<hr/>
<p>Sent from sourceforge.net because gem-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pd-gem/bugs/">https://sourceforge.net/p/pd-gem/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pd-gem/admin/bugs/options.">https://sourceforge.net/p/pd-gem/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>