1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-23 04:04:54 +08:00

fix for clang build on macosx

This commit is contained in:
Alexander Bulychev 2015-04-06 16:53:33 +03:00
parent 5b13be4d7c
commit e26a977173

View File

@ -522,7 +522,7 @@ Serial::SerialImpl::waitReadable (uint32_t timeout)
void
Serial::SerialImpl::waitByteTimes (size_t count)
{
timespec wait_time = { 0, byte_time_ns_ * count };
timespec wait_time = { 0, static_cast<long>(byte_time_ns_ * count)};
pselect (0, NULL, NULL, NULL, &wait_time, NULL);
}