Il 27/05/2014 03:39, arei.gong...@huawei.com ha scritto:
(1) Event assignment: Assigning: "pixels" = "0". (2) Event cond_true: Condition "y < h", taking true branch (3) Event cond_false: Condition "x < w", taking false branch (4) Event loop_end: Reached end of loop (5) Event divide_by_zero: In expression "(stats[0] + stats[1]) * 100U / pixels", division by expression "pixels" which may be zero has undefined behavior.
I'm quite sure that this cannot happen (h and w must be > 0) but it doesn't hurt.
Paolo