Commit 9b4fe03a authored by Ian Roddis's avatar Ian Roddis

Adding a static cast to fix type mismatch that results in a BadType error

parent 62ed986a
......@@ -235,7 +235,9 @@ Transport::asyncWriteImpl(
::close(buffer.fd());
}
deferred.resolve(totalWritten);
// Cast to match the type of defered template
// to avoid a BadType exception
deferred.resolve(static_cast<ssize_t>(totalWritten));
break;
}
}
......
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