Utils/Data_encoding: add missing case in merge_objs
.
This commit is contained in:
parent
5beb62c83e
commit
6cb428c1a2
@ -551,6 +551,7 @@ module Encoding = struct
|
|||||||
| Obj _ -> true
|
| Obj _ -> true
|
||||||
| Objs _ (* by construction *) -> true
|
| Objs _ (* by construction *) -> true
|
||||||
| Conv { encoding = e } -> is_obj e
|
| Conv { encoding = e } -> is_obj e
|
||||||
|
| Dynamic_size e -> is_obj e
|
||||||
| Union (_,_,cases) ->
|
| Union (_,_,cases) ->
|
||||||
List.for_all (fun (Case { encoding = e }) -> is_obj e) cases
|
List.for_all (fun (Case { encoding = e }) -> is_obj e) cases
|
||||||
| Empty -> true
|
| Empty -> true
|
||||||
@ -591,6 +592,7 @@ module Encoding = struct
|
|||||||
| Tup _ -> true
|
| Tup _ -> true
|
||||||
| Tups _ (* by construction *) -> true
|
| Tups _ (* by construction *) -> true
|
||||||
| Conv { encoding = e } -> is_tup e
|
| Conv { encoding = e } -> is_tup e
|
||||||
|
| Dynamic_size e -> is_tup e
|
||||||
| Union (_,_,cases) ->
|
| Union (_,_,cases) ->
|
||||||
List.for_all (function Case { encoding = e} -> is_tup e) cases
|
List.for_all (function Case { encoding = e} -> is_tup e) cases
|
||||||
| _ -> false in
|
| _ -> false in
|
||||||
|
Loading…
Reference in New Issue
Block a user