Skip to content

Commit c3eb021

Browse files
committed
allow saving uint64 integers in saveubjson, fix #49
1 parent d2b2421 commit c3eb021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saveubjson.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375
end
376376
if(isempty(type))
377377
% todo - need to consider negative ones separately
378-
id= histc(abs(max(mat(:))),[0 2^7 2^15 2^31 2^63]);
378+
id= histc(abs(max(double(mat(:)))),[0 2^7 2^15 2^31 2^63]);
379379
if(isempty(id~=0))
380380
error('high-precision data is not yet supported');
381381
end

0 commit comments

Comments
 (0)