summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-11-05 12:16:26 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2012-11-05 12:16:26 +0000
commit91a212abeb9d6dff75d075593c6835336bd9fc5e (patch)
tree79ca710c62903d98c2241872fe1f221c00b40c93 /src
parent596a7d9b69eff73238b90fb9e594d21b1c04680c (diff)
parent486b736a35966898ea66a567073bda409377be24 (diff)
downloadrabbitmq-server-git-91a212abeb9d6dff75d075593c6835336bd9fc5e.tar.gz
merge bug25266 into bug25273
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_binary_generator.erl6
-rw-r--r--src/rabbit_tests.erl4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/rabbit_binary_generator.erl b/src/rabbit_binary_generator.erl
index 6b6b395a6a..2ece86963f 100644
--- a/src/rabbit_binary_generator.erl
+++ b/src/rabbit_binary_generator.erl
@@ -215,9 +215,9 @@ encode_property(shortstr, String) ->
encode_property(longstr, String) -> Len = size(String),
<<Len:32, String:Len/binary>>;
encode_property(octet, Int) -> <<Int:8/unsigned>>;
-encode_property(shortint, Int) -> <<Int:16/unsigned>>;
-encode_property(longint, Int) -> <<Int:32/unsigned>>;
-encode_property(longlongint, Int) -> <<Int:64/unsigned>>;
+encode_property(short, Int) -> <<Int:16/unsigned>>;
+encode_property(long, Int) -> <<Int:32/unsigned>>;
+encode_property(longlong, Int) -> <<Int:64/unsigned>>;
encode_property(timestamp, Int) -> <<Int:64/unsigned>>;
encode_property(table, Table) -> table_to_binary(Table).
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index eb97f1d6ff..715aa186ec 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -444,10 +444,10 @@ test_content_properties() ->
test_content_prop_encoding([{bit, true}, {octet, 123}, {octet, 123}, {bit, true}],
<<16#F0,0,123,123>>),
test_content_prop_encoding([{bit, true}, {shortstr, <<"hi">>}, {bit, true},
- {shortint, 54321}, {bit, true}],
+ {short, 54321}, {bit, true}],
<<16#F8,0,2,"hi",16#D4,16#31>>),
test_content_prop_encoding([{bit, true}, {shortstr, undefined}, {bit, true},
- {shortint, 54321}, {bit, true}],
+ {short, 54321}, {bit, true}],
<<16#B8,0,16#D4,16#31>>),
test_content_prop_encoding([{table, [{<<"a signedint">>, signedint, 12345678},
{<<"a longstr">>, longstr, <<"yes please">>},