We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7809599 commit b86f8ccCopy full SHA for b86f8cc
include/boost/leaf/common.hpp
@@ -96,9 +96,9 @@ namespace windows
96
{
97
BOOST_LEAF_ASSERT(mb.p != nullptr);
98
char * z = std::strchr((LPSTR)mb.p,0);
99
- if( z != mb.p && z[-1] == '\n' )
+ if( z != (LPSTR)mb.p && z[-1] == '\n' )
100
*--z = 0;
101
- if( z != mb.p && z[-1] == '\r' )
+ if( z != (LPSTR)mb.p && z[-1] == '\r' )
102
103
return os << err.value << ", \"" << (LPCSTR)mb.p << '"';
104
}
0 commit comments