csharp: fix char pack/unpack problem on Mono

This commit is contained in:
Kazuki Oikawa 2011-04-17 00:33:37 +09:00
parent 0812eb1c04
commit 94e5b0d78f
2 changed files with 27 additions and 1 deletions

View file

@ -42,6 +42,11 @@ namespace msgpack
}
}
public void Write (char x)
{
Write ((ushort)x);
}
public void Write (uint x)
{
if (x < 0x10000) {