dxx-rebirth/common
Kp 1cb33638c0 Fix -Wuseless-cast on Win32 in PhysFS size checking macro
Win32 aliases `size_t` to `unsigned int`, causing
`static_cast<size_t>(V)` to be a useless cast when `V` has type
`unsigned int`.  Switch to using direct initialization, which is not a
cast and so does not trigger a warning, but does produce the correct
type.  This form disallows narrowing, so inputs that might change in
value as a result of the conversion are an error.  Since this is a
sanity checking macro, that is a useful safety measure.

Reported-by: AlumiuN <https://github.com/dxx-rebirth/dxx-rebirth/issues/678#issue-1437577368>
2022-11-10 02:04:09 +00:00
..
2d Pass std::span to decode_data 2022-09-24 17:47:52 +00:00
3d Use enum class for clipping_code 2022-10-02 19:51:35 +00:00
arch Fix OS X clang build 2022-10-31 00:51:32 +00:00
editor Move various static functions into anonymous namespace 2022-07-09 13:39:29 +00:00
include Fix -Wuseless-cast on Win32 in PhysFS size checking macro 2022-11-10 02:04:09 +00:00
main Use #if for DXX_HAVE_CXX_BUILTIN_FILE_LINE 2022-11-10 02:04:09 +00:00
maths Remove quadint members low, high 2022-05-24 02:32:58 +00:00
mem Refer to <array> directly, not through "compiler-array.h" 2020-05-02 21:18:42 +00:00
misc Test whether change_filename_extension succeeded before using its output 2022-10-09 23:15:20 +00:00
music Rework ADL dynamic loader 2018-10-15 00:51:53 +00:00
texmap Pass std::span to draw_tmap, draw_tmap_flat 2022-09-24 17:47:52 +00:00
ui Fix OS X clang build 2022-10-31 00:51:32 +00:00
unittest Generalize zip get_static_size to use tuple_size 2022-11-07 01:59:34 +00:00