Commit c1a5b06d authored by Andrey Zhezherun's avatar Andrey Zhezherun Committed by Alexandre Julliard

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

parent 43d31483
......@@ -978,7 +978,7 @@ int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
{
TRACE("(%p %d)\n", this, ch);
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);
}
......
......@@ -1409,7 +1409,7 @@ int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
{
TRACE("(%p %d)\n", this, ch);
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);
}
......@@ -3447,7 +3447,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
this->seekhigh, 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);
size = oldsize|0xf;
......@@ -3484,7 +3484,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
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 */
......
......@@ -1451,7 +1451,7 @@ int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
{
TRACE("(%p %d)\n", this, ch);
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);
}
......@@ -3697,7 +3697,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
this->seekhigh, 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);
size = oldsize|0xf;
......@@ -3734,7 +3734,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
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 */
......
......@@ -1406,7 +1406,7 @@ int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
{
TRACE("(%p %d)\n", this, ch);
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);
}
......@@ -3702,7 +3702,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
this->seekhigh, 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);
size = oldsize|0xf;
......@@ -3739,7 +3739,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
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 */
......
......@@ -1406,7 +1406,7 @@ int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
{
TRACE("(%p %d)\n", this, ch);
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);
}
......@@ -3702,7 +3702,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
this->seekhigh, 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);
size = oldsize|0xf;
......@@ -3739,7 +3739,7 @@ int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int met
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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment