mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
fix(BinaryWriter): warning due to implicit cast
This commit is contained in:
parent
a25cdac549
commit
4892d97f51
@ -336,7 +336,7 @@ void BinaryWriter::writeRaw(const char* buffer, std::streamsize length)
|
|||||||
|
|
||||||
void BinaryWriter::writeCString(const char* cString, std::streamsize maxLength)
|
void BinaryWriter::writeCString(const char* cString, std::streamsize maxLength)
|
||||||
{
|
{
|
||||||
const std::size_t len = ::strnlen(cString, maxLength);
|
const std::size_t len = ::strnlen(cString, static_cast<std::size_t>(maxLength));
|
||||||
writeRaw(cString, len);
|
writeRaw(cString, len);
|
||||||
static const char zero = '\0';
|
static const char zero = '\0';
|
||||||
_ostr.write(&zero, sizeof(zero));
|
_ostr.write(&zero, sizeof(zero));
|
||||||
|
Loading…
Reference in New Issue
Block a user