[GEM-dev] [pd-gem:bugs] #246 compile issue in pix_colorclassify.cpp
"IOhannes m zmölnig"
zmoelnig at users.sf.net
Wed May 25 14:57:29 CEST 2016
- **status**: open --> closed-fixed
- **assigned_to**: IOhannes m zmölnig
- **Release**: unknown --> 0.94
- **Comment**:
thanks.
i've [cleaned up the code](88b29e4ddb5da2cfeed2e7c227a228c5aa85efbe), and as a side-effect the issue should be gone
---
** [bugs:#246] compile issue in pix_colorclassify.cpp**
**Status:** closed-fixed
**OS:** linux
**Release:** 0.94
**Created:** Mon May 23, 2016 11:05 PM UTC by Albert Graef
**Last Updated:** Mon May 23, 2016 11:05 PM UTC
**Owner:** IOhannes m zmölnig
**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/20160525/2a6a7800/attachment.html>
More information about the GEM-dev
mailing list