diff options
author | Pete Batard <pbatard@gmail.com> | 2010-03-04 00:25:14 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-03-04 00:25:14 +0000 |
commit | 90b88cbddf0d2554df7ecfaee8069cc786b23712 (patch) | |
tree | 3b873ef24b2a38d0d05b93fe28b50cbba35608d8 | |
parent | 666106e8366806bf2a3a14391561bd33ee8875fa (diff) | |
download | libusb-90b88cbddf0d2554df7ecfaee8069cc786b23712.tar.gz |
fixed uint64_t warnings (Graeme Gill)r192
-rw-r--r-- | libusb/os/windows_usb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 7f05576..33d35f2 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -112,7 +112,7 @@ static int composite_copy_transfer_data(struct usbi_transfer *itransfer, uint32_ // Global variables struct windows_hcd_priv* hcd_root = NULL; uint64_t hires_frequency, hires_ticks_to_ps; -const uint64_t epoch_time = 116444736000000000; // 1970.01.01 00:00:000 in MS Filetime +const uint64_t epoch_time = UINT64_C(116444736000000000); // 1970.01.01 00:00:000 in MS Filetime enum windows_version windows_version = WINDOWS_UNSUPPORTED; // Concurrency static int concurrent_usage = -1; @@ -1951,12 +1951,12 @@ unsigned __stdcall windows_clock_gettime_threaded(void* param) if (!QueryPerformanceFrequency(&li_frequency)) { usbi_dbg("no hires timer available on this platform"); hires_frequency = 0; - hires_ticks_to_ps = 0; + hires_ticks_to_ps = UINT64_C(0); } else { hires_frequency = li_frequency.QuadPart; // The hires frequency can go as high as 4 GHz, so we'll use a conversion // to picoseconds to compute the tv_nsecs part in clock_gettime - hires_ticks_to_ps = 1000000000000 / hires_frequency; + hires_ticks_to_ps = UINT64_C(1000000000000) / hires_frequency; usbi_dbg("hires timer available (Frequency: %"PRIu64" Hz)", hires_frequency); } |