1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-09 10:00:57 +03:00
Files
mvfst/quic/api/QuicBatchWriter.cpp
James Donald 961ad2e0f3 Remove address truncation in debug output on Windows
Summary:
```
quic\api\quicbatchwriter.cpp(286): warning C4311: 'type cast': pointer truncation from 'const uint8_t *' to 'long'
quic\api\quicbatchwriter.cpp(286): warning C4302: 'type cast': truncation from 'const uint8_t *' to 'long'
```
On *nix 64-bit systems a `long` is 64 bits while on Windows/MSVC it's 32-bits. Better just use the 64-bit value for consistency.

Reviewed By: yangchi

Differential Revision: D25496685

fbshipit-source-id: f2357c6b9f4e4ca1a630db95b69a116d0241c744
2020-12-12 02:43:37 -08:00

15 KiB