eidheim / tiny-process-library

A small platform independent library making it simple to create and stop new processes in C++, as well as writing to stdin and reading from stdout and stderr of a new process
MIT License
338 stars 73 forks source link

Fix -Wconversion warning #24

Closed foonathan closed 7 years ago

foonathan commented 7 years ago

Fix a truncation warning when building the library. sysconf() returns long int but file descriptors are int, so truncation is safe and cast just silences the warning.

eidheim commented 7 years ago

Thank you!