diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2011-10-19 16:26:17 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2011-10-19 16:26:17 +0100 |
commit | 0331855308e186ed7b2439a33c7906672ec9ed32 (patch) | |
tree | 6da8657e282c5062cbb5cfe4655df2dce0f85818 | |
parent | 46143ab7d20853a8b2f7a571ef14931f4ddf3861 (diff) | |
download | rabbitmq-server-bug24481.tar.gz |
Cosmeticbug24481
-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; |