Signed vs Unsigned warnings in removeoverlap
I get these warnings:
../../src/removeoverlap/remove_rectangle_overlap.cpp: In function `void removeRectangleOverlap(unsigned int, Rectangle**, double, double)': ../../src/removeoverlap/remove_rectangle_overlap.cpp:43: warning: comparison of unsigned expression >= 0 is always true ../../src/removeoverlap/remove_rectangle_overlap.cpp:49: warning: comparison between signed and unsigned integer expressions ../../src/removeoverlap/remove_rectangle_overlap.cpp:55: warning: comparison between signed and unsigned integer expressions ../../src/removeoverlap/remove_rectangle_overlap.cpp:65: warning: comparison between signed and unsigned integer expressions ../../src/removeoverlap/remove_rectangle_overlap.cpp:83: warning: comparison between signed and unsigned integer expressions ../../src/removeoverlap/remove_rectangle_overlap.cpp:105: warning: comparison between signed and unsigned integer expressions ../../src/removeoverlap/remove_rectangle_overlap.cpp:112: warning: comparison between signed and unsigned integer expressions ../../src/removeoverlap/solve_VPSC.cpp: In member function `void VPSC::refine()': ../../src/removeoverlap/solve_VPSC.cpp:99: warning: comparison of unsigned expression >= 0 is always true
and enclose this simple patch - I have no way of checking that this is correct
participants (1)
-
Ben Fowler