Skip to content

Commit f2bfb65

Browse files
author
Qianqian Fang
committed
fix a uint8 upper bound bug
1 parent cc4491d commit f2bfb65

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
@@ -680,7 +680,7 @@
680680

681681
if(isa(mat,'integer') || isinteger(mat) || (isfloat(mat) && all(mod(mat(:),1) == 0)))
682682
if(~any(mat<0))
683-
if(max(mat(:))<=2^8)
683+
if(max(mat(:))<2^8)
684684
type=Imarker(1);
685685
end
686686
end

0 commit comments

Comments
 (0)