termux-packages/packages/boost/boost-process-detail-posix-...

14 lines
446 B
Diff
Raw Normal View History

2022-02-08 06:24:26 +01:00
https://github.com/boostorg/process/issues/235
--- a/boost/process/detail/posix/executor.hpp
+++ b/boost/process/detail/posix/executor.hpp
@@ -153,7 +153,7 @@
{
//I am the child
const auto len = std::strlen(msg);
- int data[2] = {ec.value(), len + 1};
+ int data[2] = {ec.value(), static_cast<int>(len + 1)};
::write(_pipe_sink, &data[0], sizeof(int) * 2);
::write(_pipe_sink, msg, len);