<div class="markdown_content"><ul>
<li><strong>status</strong>: open --> closed-fixed</li>
<li><strong>assigned_to</strong>: IOhannes m zmölnig</li>
<li><strong>Release</strong>: unknown --> 0.94</li>
<li><strong>Comment</strong>:</li>
</ul>
<p>thanks.</p>
<p>i've <a class="" href="https://sourceforge.net/p/pd-gem/gem/ci/88b29e4ddb5da2cfeed2e7c227a228c5aa85efbe/">cleaned up the code</a>, and as a side-effect the issue should be gone</p>
<hr/>
<p><strong> <a class="alink strikethrough" href="https://sourceforge.net/p/pd-gem/bugs/246/">[bugs:#246]</a> compile issue in pix_colorclassify.cpp</strong></p>
<p><strong>Status:</strong> closed-fixed<br/>
<strong>OS:</strong> linux<br/>
<strong>Release:</strong> 0.94<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> IOhannes m zmölnig<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>