summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-10-19 16:26:17 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-10-19 16:26:17 +0100
commit0331855308e186ed7b2439a33c7906672ec9ed32 (patch)
tree6da8657e282c5062cbb5cfe4655df2dce0f85818
parent46143ab7d20853a8b2f7a571ef14931f4ddf3861 (diff)
downloadrabbitmq-server-bug24481.tar.gz
Cosmeticbug24481
-rw-r--r--src/rabbit_misc.erl16
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;