Skip to content

Commit

Permalink
APIUtil: fix handling of int32 pointers
Browse files Browse the repository at this point in the history
Closes #17
  • Loading branch information
PMeira committed Jan 10, 2024
1 parent 0be56b7 commit ea1cc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion +DSS_MATLAB/APIUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function delete(obj)
function result = get_int32_gr_array(obj)
data = calllib(obj.libname, 'ctx_DSS_GR_DataPtr_PInteger', obj.dssctx);
cnt = obj.CountPtr_PInteger.Value;
setdatatype(data, 'int32Ptr', 1, cnt);
setdatatype(data, 'int32Ptr', 1, cnt(1));
result = data.Value;
if obj.allow_complex && (cnt(4) ~= 0)
% If the last element is filled, we have a matrix. Otherwise, the
Expand Down

0 comments on commit ea1cc9b

Please sign in to comment.