Skip to content

Commit ea1cc9b

Browse files
committed
APIUtil: fix handling of int32 pointers
Closes #17
1 parent 0be56b7 commit ea1cc9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+DSS_MATLAB/APIUtil.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function delete(obj)
152152
function result = get_int32_gr_array(obj)
153153
data = calllib(obj.libname, 'ctx_DSS_GR_DataPtr_PInteger', obj.dssctx);
154154
cnt = obj.CountPtr_PInteger.Value;
155-
setdatatype(data, 'int32Ptr', 1, cnt);
155+
setdatatype(data, 'int32Ptr', 1, cnt(1));
156156
result = data.Value;
157157
if obj.allow_complex && (cnt(4) ~= 0)
158158
% If the last element is filled, we have a matrix. Otherwise, the

0 commit comments

Comments
 (0)