Explorar el Código

ft: toBinary修改

master
SisMaker hace 4 años
padre
commit
d8bca21f7c
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. +0
    -2
      src/agVstCli/agMiscUtils.erl

+ 0
- 2
src/agVstCli/agMiscUtils.erl Ver fichero

@ -92,7 +92,5 @@ toBinary(Value) when is_list(Value) -> list_to_binary(Value);
toBinary(Value) when is_float(Value) -> float_to_binary(Value, [{decimals, 6}, compact]);
toBinary(Value) when is_atom(Value) -> atom_to_binary(Value, utf8);
toBinary(Value) when is_binary(Value) -> Value;
toBinary([Tuple | PropList] = Value) when is_list(PropList) and is_tuple(Tuple) ->
lists:map(fun({K, V}) -> {toBinary(K), toBinary(V)} end, Value);
toBinary(Value) -> term_to_binary(Value).

Cargando…
Cancelar
Guardar