diff options
-rw-r--r-- | src/rabbit_misc.erl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index e615936c..dcfbcaff 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -236,13 +236,13 @@ protocol_error(#amqp_error{} = Error) -> not_found(R) -> protocol_error(not_found, "no ~s", [rs(R)]). -type_class(byte) -> int_class; -type_class(short) -> int_class; -type_class(signedint) -> int_class; -type_class(long) -> int_class; -type_class(decimal) -> int_class; -type_class(float) -> float_class; -type_class(double) -> float_class; +type_class(byte) -> int; +type_class(short) -> int; +type_class(signedint) -> int; +type_class(long) -> int; +type_class(decimal) -> int; +type_class(float) -> float; +type_class(double) -> float; type_class(Other) -> Other. assert_args_equivalence(Orig, New, Name, Keys) -> @@ -253,7 +253,7 @@ assert_args_equivalence1(Orig, New, Name, Key) -> case {table_lookup(Orig, Key), table_lookup(New, Key)} of {Same, Same} -> ok; - {{OrigType, OrigVal} = Orig1, {NewType, NewVal} = New1} -> + {{OrigType, OrigVal} = Orig1, {NewType, NewVal} = New1} -> case type_class(OrigType) == type_class(NewType) andalso OrigVal == NewVal of true -> ok; |