CBOR monotone: Major type 7 is short field encoded
This commit is contained in:
parent
9e8f765703
commit
3edd956493
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ module Simple = struct
|
||||||
Int64.unsigned_compare n n' < 0 ||
|
Int64.unsigned_compare n n' < 0 ||
|
||||||
Int64.unsigned_compare n n' = 0 &&
|
Int64.unsigned_compare n n' = 0 &&
|
||||||
begin
|
begin
|
||||||
List.mem (major_typ s) [2; 3; 4; 5; 7 (* XXX: unsure about 7 *)] &&
|
List.mem (major_typ s) [2; 3; 4; 5] &&
|
||||||
let len = Int64.to_int n in
|
let len = Int64.to_int n in
|
||||||
String.sub s off len < String.sub s' off len
|
String.sub s off len < String.sub s' off len
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue