Fix function_clause bug (#51)
All checks were successful
Gajumaru Serialization Tests / tests (push) Successful in 49m16s

Co-authored-by: Ulf Wiger <ulf@wiger.net>
Reviewed-on: #51
This commit is contained in:
Ulf Wiger 2025-04-14 19:10:58 +09:00
parent ed204f8526
commit 0d77ca0388

View File

@ -424,8 +424,8 @@ decode_basic_(label, Fld, #{options := #{missing_labels := Opt}}) ->
error:_ -> Bin
end
end;
decode_basic_(label, Fld, _) ->
decode_basic(label, Fld).
decode_basic_(Type, Fld, _) ->
decode_basic(Type, Fld).
decode_basic(label, Fld) ->
binary_to_existing_atom(decode_basic(binary, Fld), utf8);