Commit e62195c9 by Peter Kasting Committed by Angle LUCI CQ

Fix another -Wc++11-narrowing issue.

Bug: chromium:1216696 Change-Id: I18ceae2d6bdd689830fafbfd12b1185c680f2e33 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2965192Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent a1d43971
...@@ -325,9 +325,10 @@ void Sleep(unsigned int milliseconds) ...@@ -325,9 +325,10 @@ void Sleep(unsigned int milliseconds)
} }
else else
{ {
timespec sleepTime = { long milliseconds_long = milliseconds;
.tv_sec = milliseconds / 1000, timespec sleepTime = {
.tv_nsec = (milliseconds % 1000) * 1000000, .tv_sec = milliseconds_long / 1000,
.tv_nsec = (milliseconds_long % 1000) * 1000000,
}; };
nanosleep(&sleepTime, nullptr); nanosleep(&sleepTime, nullptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment