Commit 863b146a authored by Maks Naumov's avatar Maks Naumov Committed by GitHub

ashift: fix check in LineSegmentDetection()

parent 5dd21704
......@@ -2250,7 +2250,7 @@ double * LineSegmentDetection( int * n_out,
if( region == NULL ) error("'region' should be a valid image.");
*reg_img = region->data;
if( region->xsize > (unsigned int) INT_MAX ||
region->xsize > (unsigned int) INT_MAX )
region->ysize > (unsigned int) INT_MAX )
error("region image to big to fit in INT sizes.");
*reg_x = (int) (region->xsize);
*reg_y = (int) (region->ysize);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment