Skip to content

Commit c0cc385

Browse files
committed
correct the mispelled function
1 parent 2aa6591 commit c0cc385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saveubjson.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@
646646
if(isempty(type))
647647
% todo - need to consider negative ones separately
648648
maxval=max(double(mat(:)));
649-
if(max(double(mat(:)))>=0 && maxval<=255)
649+
if(min(double(mat(:)))>=0 && maxval<=255)
650650
type='U';
651651
else
652652
id= histc(abs(maxval),[0 2^7 2^15 2^31 2^63]);

0 commit comments

Comments
 (0)