Fixed gcc compilation errors.

git-svn-id: https://rapidjson.googlecode.com/svn/trunk@43 c5894555-1306-4e8d-425f-1f6f381ee07c
This commit is contained in:
miloyip@gmail.com 2011-11-30 17:03:30 +00:00
parent 3b1a995d21
commit 8c15b1d580
2 changed files with 25 additions and 25 deletions

View File

@ -247,7 +247,7 @@ struct UTF16LE : UTF16<CharType> {
} }
template <typename OutputStream> template <typename OutputStream>
static void Put(OutputStream& os, Ch c) { static void Put(OutputStream& os, CharType c) {
os.Put(c & 0xFFu); os.Put(c & 0xFFu);
os.Put((c >> 8) & 0xFFu); os.Put((c >> 8) & 0xFFu);
} }
@ -274,7 +274,7 @@ struct UTF16BE : UTF16<CharType> {
} }
template <typename OutputStream> template <typename OutputStream>
static void Put(OutputStream& os, Ch c) { static void Put(OutputStream& os, CharType c) {
os.Put((c >> 8) & 0xFFu); os.Put((c >> 8) & 0xFFu);
os.Put(c & 0xFFu); os.Put(c & 0xFFu);
} }
@ -336,7 +336,7 @@ struct UTF32LE : UTF32<CharType> {
} }
template <typename OutputStream> template <typename OutputStream>
static void Put(OutputStream& os, Ch c) { static void Put(OutputStream& os, CharType c) {
os.Put(c & 0xFFu); os.Put(c & 0xFFu);
os.Put((c >> 8) & 0xFFu); os.Put((c >> 8) & 0xFFu);
os.Put((c >> 16) & 0xFFu); os.Put((c >> 16) & 0xFFu);
@ -367,7 +367,7 @@ struct UTF32BE : UTF32<CharType> {
} }
template <typename OutputStream> template <typename OutputStream>
static void Put(OutputStream& os, Ch c) { static void Put(OutputStream& os, CharType c) {
os.Put((c >> 24) & 0xFFu); os.Put((c >> 24) & 0xFFu);
os.Put((c >> 16) & 0xFFu); os.Put((c >> 16) & 0xFFu);
os.Put((c >> 8) & 0xFFu); os.Put((c >> 8) & 0xFFu);