Skip to content

Commit

Permalink
allow saving uint64 integers in saveubjson, fix #49
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Nov 18, 2018
1 parent d2b2421 commit c3eb021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saveubjson.m
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
end
if(isempty(type))
% todo - need to consider negative ones separately
id= histc(abs(max(mat(:))),[0 2^7 2^15 2^31 2^63]);
id= histc(abs(max(double(mat(:)))),[0 2^7 2^15 2^31 2^63]);
if(isempty(id~=0))
error('high-precision data is not yet supported');
end
Expand Down

0 comments on commit c3eb021

Please sign in to comment.