CV_MAT_ELEM_PTR_FAST(): Fix 64 bit bug

This commit is contained in:
Michael Bunk 2023-11-03 10:30:53 +01:00
parent e546cdae09
commit 84a4137f2c

View File

@ -2425,7 +2425,7 @@ end;
function CV_MAT_ELEM_PTR_FAST(const mat: TCvMat; const row, col, pix_size: Integer): Pointer;
begin
Assert((row < mat.rows) and (col < mat.cols) and (row >= 0) and (col >= 0));
Result := Pointer(Integer(mat.data.ptr) + mat.step * row + pix_size * col);
Result := Pointer(IntPtr(mat.data.ptr) + mat.step * row + pix_size * col);
end;
function CV_MAT_ELEM(const mat: TCvMat; const elemsize: Integer; const row, col: Integer): Pointer;