Skip to content

Commit

Permalink
Cast duration to int32 before passing to C++.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingurney committed Aug 25, 2023
1 parent 415c5f8 commit 10becf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matlab/src/matlab/+arrow/+array/Date32Array.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
validElements = arrow.internal.validate.parseValidElements(data, opts);
% UNIX Epoch (January 1st, 1970)
unixEpoch = datetime(0, ConvertFrom="posixtime");
numDays = days(data - unixEpoch);
numDays = int32(days(data - unixEpoch));
args = struct(MatlabArray=numDays, Valid=validElements);
proxy = arrow.internal.proxy.create("arrow.array.proxy.Date32Array", args);
array = Date32Array(proxy);
Expand Down

0 comments on commit 10becf4

Please sign in to comment.