mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
detail
This commit is contained in:
parent
249dc3596e
commit
d535cfe677
1 changed files with 3 additions and 2 deletions
|
|
@ -216,8 +216,9 @@ let decode_exn (s : string) : t =
|
||||||
| 28 | 29 | 30 -> failwith "cbor: malformed"
|
| 28 | 29 | 30 -> failwith "cbor: malformed"
|
||||||
| 31 -> failwith "uncaught 'break' stop code"
|
| 31 -> failwith "uncaught 'break' stop code"
|
||||||
| _ -> assert false (* unreachable *))
|
| _ -> assert false (* unreachable *))
|
||||||
| _ -> assert false
|
| _ ->
|
||||||
(* unreachable *)
|
(* unreachable *)
|
||||||
|
assert false
|
||||||
and read_bytes ~ty low =
|
and read_bytes ~ty low =
|
||||||
match read_int ~allow_indefinite:true low |> i64_to_int with
|
match read_int ~allow_indefinite:true low |> i64_to_int with
|
||||||
| exception Indefinite ->
|
| exception Indefinite ->
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue