mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
Merge pull request #93 from legath/master
fix for clang build on macosx
This commit is contained in:
commit
d7084ce775
@ -522,7 +522,7 @@ Serial::SerialImpl::waitReadable (uint32_t timeout)
|
|||||||
void
|
void
|
||||||
Serial::SerialImpl::waitByteTimes (size_t count)
|
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);
|
pselect (0, NULL, NULL, NULL, &wait_time, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user