Bug 837561 ReadInt16 and WriteInt16 should be paired r=benjamin

This commit is contained in:
Ginn Chen 2013-02-18 15:19:03 +08:00
parent fbecbc5b2f
commit ccea6f8d02

View File

@ -266,7 +266,7 @@ template <>
struct ParamTraitsFixed<int16_t> {
typedef int16_t param_type;
static void Write(Message* m, const param_type& p) {
m->WriteInt(p);
m->WriteInt16(p);
}
static bool Read(const Message* m, void** iter, param_type* r) {
return m->ReadInt16(iter, r);
@ -280,7 +280,7 @@ template <>
struct ParamTraitsFixed<uint16_t> {
typedef uint16_t param_type;
static void Write(Message* m, const param_type& p) {
m->WriteInt(p);
m->WriteUInt16(p);
}
static bool Read(const Message* m, void** iter, param_type* r) {
return m->ReadUInt16(iter, r);