aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 91100426..59e5adb5 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -307,6 +307,9 @@ int main(int argc, char *argv[])
for ( x=0; x<image.width; x++ ) {
for ( y=0; y<image.height; y++ ) {
powder[x+w*y] += image.data[x+w*y];
+ if ( image.data[x+w*y] < 0 ) {
+ STATUS("Negative! %f %i %i\n", image.data[x+w*y], x, y);
+ }
}
}