msvcp: Added missing casts to unsigned char in streambuf functions.

This commit is contained in:
Andrey Zhezherun 2013-10-31 23:38:29 +00:00 committed by Alexandre Julliard
parent 43d3148357
commit c1a5b06d49
5 changed files with 13 additions and 13 deletions

View File

@ -978,7 +978,7 @@ int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
{ {
TRACE("(%p %d)\n", this, ch); TRACE("(%p %d)\n", this, ch);
return basic_streambuf_char__Pnavail(this) ? return basic_streambuf_char__Pnavail(this) ?
(*basic_streambuf_char__Pninc(this) = ch) : (unsigned char)(*basic_streambuf_char__Pninc(this) = ch) :
call_basic_streambuf_char_overflow(this, (unsigned char)ch); call_basic_streambuf_char_overflow(this, (unsigned char)ch);
} }

View File

@ -1409,7 +1409,7 @@ int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
{ {
TRACE("(%p %d)\n", this, ch); TRACE("(%p %d)\n", this, ch);
return basic_streambuf_char__Pnavail(this) ? return basic_streambuf_char__Pnavail(this) ?
(*basic_streambuf_char__Pninc(this) = ch) : (unsigned char)(*basic_streambuf_char__Pninc(this) = ch) :
call_basic_streambuf_char_overflow(this, (unsigned char)ch); call_basic_streambuf_char_overflow(this, (unsigned char)ch);
} }
@ -3447,7 +3447,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
this->seekhigh, basic_streambuf_char_epptr(&this->base)); this->seekhigh, basic_streambuf_char_epptr(&this->base));
if(ptr && ptr<basic_streambuf_char_epptr(&this->base)) if(ptr && ptr<basic_streambuf_char_epptr(&this->base))
return (*basic_streambuf_char__Pninc(&this->base) = meta); return (unsigned char)(*basic_streambuf_char__Pninc(&this->base) = meta);
oldsize = (ptr ? basic_streambuf_char_epptr(&this->base)-basic_streambuf_char_eback(&this->base): 0); oldsize = (ptr ? basic_streambuf_char_epptr(&this->base)-basic_streambuf_char_eback(&this->base): 0);
size = oldsize|0xf; size = oldsize|0xf;
@ -3484,7 +3484,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
MSVCRT_operator_delete(ptr); MSVCRT_operator_delete(ptr);
} }
return (*basic_streambuf_char__Pninc(&this->base) = meta); return (unsigned char)(*basic_streambuf_char__Pninc(&this->base) = meta);
} }
/* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */ /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */

View File

@ -1451,7 +1451,7 @@ int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
{ {
TRACE("(%p %d)\n", this, ch); TRACE("(%p %d)\n", this, ch);
return basic_streambuf_char__Pnavail(this) ? return basic_streambuf_char__Pnavail(this) ?
(*basic_streambuf_char__Pninc(this) = ch) : (unsigned char)(*basic_streambuf_char__Pninc(this) = ch) :
call_basic_streambuf_char_overflow(this, (unsigned char)ch); call_basic_streambuf_char_overflow(this, (unsigned char)ch);
} }
@ -3697,7 +3697,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
this->seekhigh, basic_streambuf_char_epptr(&this->base)); this->seekhigh, basic_streambuf_char_epptr(&this->base));
if(ptr && ptr<basic_streambuf_char_epptr(&this->base)) if(ptr && ptr<basic_streambuf_char_epptr(&this->base))
return (*basic_streambuf_char__Pninc(&this->base) = meta); return (unsigned char)(*basic_streambuf_char__Pninc(&this->base) = meta);
oldsize = (ptr ? basic_streambuf_char_epptr(&this->base)-basic_streambuf_char_eback(&this->base): 0); oldsize = (ptr ? basic_streambuf_char_epptr(&this->base)-basic_streambuf_char_eback(&this->base): 0);
size = oldsize|0xf; size = oldsize|0xf;
@ -3734,7 +3734,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
MSVCRT_operator_delete(ptr); MSVCRT_operator_delete(ptr);
} }
return (*basic_streambuf_char__Pninc(&this->base) = meta); return (unsigned char)(*basic_streambuf_char__Pninc(&this->base) = meta);
} }
/* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */ /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */

View File

@ -1406,7 +1406,7 @@ int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
{ {
TRACE("(%p %d)\n", this, ch); TRACE("(%p %d)\n", this, ch);
return basic_streambuf_char__Pnavail(this) ? return basic_streambuf_char__Pnavail(this) ?
(*basic_streambuf_char__Pninc(this) = ch) : (unsigned char)(*basic_streambuf_char__Pninc(this) = ch) :
call_basic_streambuf_char_overflow(this, (unsigned char)ch); call_basic_streambuf_char_overflow(this, (unsigned char)ch);
} }
@ -3702,7 +3702,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
this->seekhigh, basic_streambuf_char_epptr(&this->base)); this->seekhigh, basic_streambuf_char_epptr(&this->base));
if(ptr && ptr<basic_streambuf_char_epptr(&this->base)) if(ptr && ptr<basic_streambuf_char_epptr(&this->base))
return (*basic_streambuf_char__Pninc(&this->base) = meta); return (unsigned char)(*basic_streambuf_char__Pninc(&this->base) = meta);
oldsize = (ptr ? basic_streambuf_char_epptr(&this->base)-basic_streambuf_char_eback(&this->base): 0); oldsize = (ptr ? basic_streambuf_char_epptr(&this->base)-basic_streambuf_char_eback(&this->base): 0);
size = oldsize|0xf; size = oldsize|0xf;
@ -3739,7 +3739,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
MSVCRT_operator_delete(ptr); MSVCRT_operator_delete(ptr);
} }
return (*basic_streambuf_char__Pninc(&this->base) = meta); return (unsigned char)(*basic_streambuf_char__Pninc(&this->base) = meta);
} }
/* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */ /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */

View File

@ -1406,7 +1406,7 @@ int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
{ {
TRACE("(%p %d)\n", this, ch); TRACE("(%p %d)\n", this, ch);
return basic_streambuf_char__Pnavail(this) ? return basic_streambuf_char__Pnavail(this) ?
(*basic_streambuf_char__Pninc(this) = ch) : (unsigned char)(*basic_streambuf_char__Pninc(this) = ch) :
call_basic_streambuf_char_overflow(this, (unsigned char)ch); call_basic_streambuf_char_overflow(this, (unsigned char)ch);
} }
@ -3702,7 +3702,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
this->seekhigh, basic_streambuf_char_epptr(&this->base)); this->seekhigh, basic_streambuf_char_epptr(&this->base));
if(ptr && ptr<basic_streambuf_char_epptr(&this->base)) if(ptr && ptr<basic_streambuf_char_epptr(&this->base))
return (*basic_streambuf_char__Pninc(&this->base) = meta); return (unsigned char)(*basic_streambuf_char__Pninc(&this->base) = meta);
oldsize = (ptr ? basic_streambuf_char_epptr(&this->base)-basic_streambuf_char_eback(&this->base): 0); oldsize = (ptr ? basic_streambuf_char_epptr(&this->base)-basic_streambuf_char_eback(&this->base): 0);
size = oldsize|0xf; size = oldsize|0xf;
@ -3739,7 +3739,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
MSVCRT_operator_delete(ptr); MSVCRT_operator_delete(ptr);
} }
return (*basic_streambuf_char__Pninc(&this->base) = meta); return (unsigned char)(*basic_streambuf_char__Pninc(&this->base) = meta);
} }
/* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */ /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */