Skip to content

Commit 30dc847

Browse files
committed
Fix compilation because of pointer/int comparison.
Without this fix, the error is: "ordered comparison between pointer and zero ('volatile unsigned int *' and 'int')"
1 parent db16caf commit 30dc847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cudastereo/src/cuda/stereobm.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ namespace cv { namespace cuda { namespace device
281281

282282
InitColSSD<RADIUS>(x_tex, y_tex, img_step, left, right, d, col_ssd);
283283

284-
if (col_ssd_extra > 0)
284+
if (col_ssd_extra != nullptr)
285285
if (x_tex + BLOCK_W < cwidth)
286286
InitColSSD<RADIUS>(x_tex + BLOCK_W, y_tex, img_step, left, right, d, col_ssd_extra);
287287

0 commit comments

Comments
 (0)