Commit e70004cb authored by Maks Naumov's avatar Maks Naumov Committed by Tobias Ellinghaus

ashift: fix check in LineSegmentDetection()

(cherry picked from commit 863b146a)
parent 0818ef6c
......@@ -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