]> sigrok.org Git - libserialport.git/commit
windows: Fix a warning on size_t to USHORT conversion.
authorMartin Ling <redacted>
Fri, 24 Jan 2020 05:06:55 +0000 (05:06 +0000)
committerUwe Hermann <redacted>
Sun, 26 Jan 2020 20:11:46 +0000 (21:11 +0100)
commit60fc49ceab499a979ba9053cce86944335ab5488
tree020087ed252246f26419919e4f8245946e599d04
parent41fc921ce47672ffc297c894c83e8469cfed6d3e
windows: Fix a warning on size_t to USHORT conversion.

Building with MSVC gave:
warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data

The value here is known to be safe for the sizes involved. Add an
explicit cast to suppress the warning.
windows.c