Skip to content
Snippets Groups Projects
Commit 4f578cb9 authored by John Romein's avatar John Romein
Browse files

bug 225:

fixed wrong use of c-style assert
parent a4d3a456
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,9 @@ inline void ION_to_CN::read(TransportHolder *th)
inline void ION_to_CN::write(TransportHolder *th)
{
assert(itsFlags.marshall(&itsMarshalledData.flagsBuffer, sizeof itsMarshalledData.flagsBuffer) >= 0);
ssize_t size = itsFlags.marshall(&itsMarshalledData.flagsBuffer, sizeof itsMarshalledData.flagsBuffer);
assert(size >= 0);
th->sendBlocking(&itsMarshalledData, sizeof itsMarshalledData, 1, 0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment