Build warnings (comparison of integer expressions of different signedness)
When building latest 0.3.0 version I get two warnings:
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -fdebug-prefix-map=/builds/openpaperwork-team/libpillowfight/debian/output/libpillowfight-0.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -Iinclude -I/usr/include/python3.7m -c src/pillowfight/_canny.c -o build/temp.linux-amd64-3.7/src/pillowfight/_canny.o
src/pillowfight/_canny.c: In function ‘non_maximum_suppression’:
src/pillowfight/_canny.c:119:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
119 | for (p = 0 ; p < PF_COUNT_OF(axis_pt_coords[axis_nb]) ; p++) {
| ^
and
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -fdebug-prefix-map=/builds/openpaperwork-team/libpillowfight/debian/output/libpillowfight-0.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -Iinclude -I/usr/include/python3.7m -c src/pillowfight/_swt.c -o build/temp.linux-amd64-3.7/src/pillowfight/_swt.o
src/pillowfight/_swt.c: In function ‘make_adjacencies_list’:
src/pillowfight/_swt.c:526:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
526 | for (i = 0 ; i < PF_COUNT_OF(to_check) ; i++) {
| ^