Merge pull request #164 from micha137/master

CV_MAT_ELEM_PTR_FAST(): Fix 64 bit bug
This commit is contained in:
Laentir Valetov 2023-11-13 17:36:42 +04:00 committed by GitHub
commit 109571055b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;