mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.91k stars 375 forks source link

Fix compiler warnings from MSVC 2017 #383

Closed laudrup closed 4 years ago

laudrup commented 4 years ago

The MS C++ compiler doesn't seem to understand that a small constant like 0, although strictly being an integer, will fit perfectly fine into an 8 bit type so add some safe casts to silence that warning.

mfontanini commented 4 years ago

Thanks!