From e26a9771730277596fe4805835c55e4868f489ef Mon Sep 17 00:00:00 2001 From: Alexander Bulychev Date: Mon, 6 Apr 2015 16:53:33 +0300 Subject: [PATCH] fix for clang build on macosx --- src/impl/unix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/impl/unix.cc b/src/impl/unix.cc index ceed439..0b7ab42 100755 --- a/src/impl/unix.cc +++ b/src/impl/unix.cc @@ -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(byte_time_ns_ * count)}; pselect (0, NULL, NULL, NULL, &wait_time, NULL); }