mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
winit-orbital: Fix i586 build
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
|
use std::os::raw::c_long;
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::sync::{Arc, Mutex, mpsc};
|
use std::sync::{Arc, Mutex, mpsc};
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
@@ -642,7 +643,7 @@ impl EventLoop {
|
|||||||
|
|
||||||
if let Some(duration) = instant.checked_duration_since(start) {
|
if let Some(duration) = instant.checked_duration_since(start) {
|
||||||
time.tv_sec += duration.as_secs() as i64;
|
time.tv_sec += duration.as_secs() as i64;
|
||||||
time.tv_nsec += duration.subsec_nanos() as i64;
|
time.tv_nsec += duration.subsec_nanos() as c_long;
|
||||||
// Normalize timespec so tv_nsec is not greater than one second.
|
// Normalize timespec so tv_nsec is not greater than one second.
|
||||||
while time.tv_nsec >= 1_000_000_000 {
|
while time.tv_nsec >= 1_000_000_000 {
|
||||||
time.tv_sec += 1;
|
time.tv_sec += 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user