mirror of
https://github.com/opencv/opencv.git
synced 2026-11-30 21:32:07 -06:00
In that function, the floats are cast to int to be compared to 0. But a float can be -0 or +0, hence define CHECK_NZ_FP(x) ((x)*2 != 0) to remove the sign bit. Except that can trigger the sanitizer: runtime error: signed integer overflow: -1082130432 * 2 cannot be represented in type 'int' Doing everything in uint instead of int is properly defined by the standard.