Skip to content

Commit 6819735

Browse files
committed
fix a stray line in histogram plotting
1 parent 19e0557 commit 6819735

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libvips/histogram/hist_plot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ G_DEFINE_TYPE(VipsHistPlot, vips_hist_plot, VIPS_TYPE_OPERATION);
8787
\
8888
for (x = le; x < ri; x++) { \
8989
for (z = 0; z < nb; z++) \
90-
q[z] = p1[z] < ((TYPE) x) ? 0 : 255; \
90+
q[z] = p1[z] < x ? 0 : 255; \
9191
\
9292
q += nb; \
9393
} \
@@ -153,7 +153,7 @@ vips_hist_plot_vert_gen(VipsRegion *out_region,
153153
\
154154
for (y = to; y < bo; y++) { \
155155
for (z = 0; z < nb; z++) \
156-
q[z] = p1[z] < ((TYPE) (ht - y)) ? 0 : 255; \
156+
q[z] = p1[z] < ht - y ? 0 : 255; \
157157
\
158158
q += lsk; \
159159
} \

0 commit comments

Comments
 (0)