index 1a691b5a8b006b8bc2b341795a3167aaf7b35e55..a4fd2b98b75fee9abd75fa21f607d9d8cdaf7cab 100644 (file)
#include <glib.h>
#include <cmath>
+#if defined (SOLARIS_2_8)
+#include "round.h"
+using Inkscape::round;
+#endif
using std::floor;
#include "libnr/nr-pixblock.h"
*/
inline void _check_index(NRPixBlock const * const pb, int const location, int const line)
{
- if(true) {
+ if(false) {
int max_loc = pb->rs * (pb->area.y1 - pb->area.y0);
- if (location < 0 || (location + 4) >= max_loc)
+ if (location < 0 || (location + 4) > max_loc)
g_warning("Location %d out of bounds (0 ... %d) at line %d", location, max_loc, line);
}
}