Go to file
Kp 2eda0d98ee Add workaround for Win32 array::size() triggering -Wuseless-cast
As described in commit 674a921 ("Add workaround for Win32 wrong type for
size_t"), std::array on Win32 returns type std::size_t, which is
`unsigned int` instead of the `unsigned long` seen on Linux.  Calling
std::min requires both arguments to have the same type.  On Linux, this
required casting the result of size() to `unsigned` to match the other
input.  On Win32, that cast provokes a -Wuseless-cast warning.  Add a
workaround by removing the cast and instead explicitly setting the type
of std::min's arguments to `unsigned`, then relying on the compiler to
perform an implicit conversion from `unsigned long` to `unsigned int`
on Linux.  The value is always small enough to fit in an `unsigned int`,
so no precision loss will occur.
2016-08-19 03:41:42 +00:00
common Remove useless casts in similar/editor/meddraw.cpp 2016-08-19 03:41:41 +00:00
contrib Update Xcode project file listing (for editing purposes) 2016-03-06 13:05:37 +08:00
d1x-rebirth Switch ab_load to use inttypes format macros 2016-08-19 03:41:41 +00:00
d2x-rebirth Add helper macro to handle printf .* conversion for 32/64 2016-08-19 03:41:41 +00:00
Documentation Update documentation and test to exclude <gcc-4.9 2016-08-14 23:47:26 +00:00
similar Add workaround for Win32 array::size() triggering -Wuseless-cast 2016-08-19 03:41:42 +00:00
.gitignore ignore XCode user data 2014-12-06 22:43:12 -08:00
COPYING.txt corrected typo in COPYING.txt (it's to its) 2014-06-06 13:18:52 +02:00
GPL-3.txt Changed custom D1X license to GPLv3 2014-06-01 19:55:23 +02:00
INSTALL.markdown Add basic instructions on building Rebirth 2015-09-26 21:17:14 +00:00
SConstruct Add helper macro to handle printf .* conversion for 32/64 2016-08-19 03:41:41 +00:00