]> sigrok.org Git - libserialport.git/commit - timing.c
windows: Fix warnings for conversions in time_as_timeval().
authorMartin Ling <redacted>
Fri, 24 Jan 2020 04:55:32 +0000 (04:55 +0000)
committerUwe Hermann <redacted>
Sun, 26 Jan 2020 20:11:37 +0000 (21:11 +0100)
commit528e8c0002cf71b6f00602022dacd4996a213522
tree6e78800f90853cd85e08e823e563e67e3d409ac6
parent988ace6c9f8035e5835847d38a6dbf654ea216da
windows: Fix warnings for conversions in time_as_timeval().

Building with MSVC gave:

warning C4244: '=': conversion from 'LONGLONG' to 'long', possible loss of data

when assigning the results of these calculation to the long fields
of struct timeval. The result should be OK, but put an explicit
cast in to make the change clear and suppress the warning.
timing.c