Skip to content

Commit

Permalink
fix a uint8 upper bound bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Qianqian Fang committed Nov 2, 2019
1 parent cc4491d commit f2bfb65
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 @@ -680,7 +680,7 @@

if(isa(mat,'integer') || isinteger(mat) || (isfloat(mat) && all(mod(mat(:),1) == 0)))
if(~any(mat<0))
if(max(mat(:))<=2^8)
if(max(mat(:))<2^8)
type=Imarker(1);
end
end
Expand Down

0 comments on commit f2bfb65

Please sign in to comment.