[GEM-dev] [pd-gem:bugs] #246 compile issue in pix_colorclassify.cpp
Albert Graef
agraef at users.sf.net
Tue May 24 01:05:47 CEST 2016
---
** [bugs:#246] compile issue in pix_colorclassify.cpp**
**Status:** open
**OS:** linux
**Release:** unknown
**Created:** Mon May 23, 2016 11:05 PM UTC by Albert Graef
**Last Updated:** Mon May 23, 2016 11:05 PM UTC
**Owner:** nobody
**Attachments:**
- [Gem-pix_colorclassify.patch](https://sourceforge.net/p/pd-gem/bugs/246/attachment/Gem-pix_colorclassify.patch) (798 Bytes; text/x-patch)
I'm getting these errors when compiling Gem on Arch with gcc 6.1.1:
~~~
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
~~~
Looks like the latest gcc is a little picky here. :) But maybe `0.5*255` could just be replaced with 127? Suggested patch attached.
---
Sent from sourceforge.net because gem-dev at lists.iem.at is subscribed to https://sourceforge.net/p/pd-gem/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pd-gem/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20160523/c8f1fba2/attachment.html>
More information about the GEM-dev
mailing list