Skip to content

Commit b86f8cc

Browse files
committed
Windows bug fix
1 parent 7809599 commit b86f8cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/leaf/common.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ namespace windows
9696
{
9797
BOOST_LEAF_ASSERT(mb.p != nullptr);
9898
char * z = std::strchr((LPSTR)mb.p,0);
99-
if( z != mb.p && z[-1] == '\n' )
99+
if( z != (LPSTR)mb.p && z[-1] == '\n' )
100100
*--z = 0;
101-
if( z != mb.p && z[-1] == '\r' )
101+
if( z != (LPSTR)mb.p && z[-1] == '\r' )
102102
*--z = 0;
103103
return os << err.value << ", \"" << (LPCSTR)mb.p << '"';
104104
}

0 commit comments

Comments
 (0)