1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00

Merge pull request #93 from legath/master

fix for clang build on macosx
This commit is contained in:
William Woodall 2015-04-06 12:04:08 -07:00
commit d7084ce775

View File

@ -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);
} }