Philip Withnall 6a2cfde29f gtypes: Define signed integer minimum values in terms of maximum values
This is what limits.h does. It avoids a problem when compiling with MSVC
(in C++ mode) on Windows, whereby the 0x80000000 constant is interpreted
as unsigned, and *then* the unary minus is applied to it.

https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-2-c4146?view=vs-2017

Add a test which should hopefully catch problems with different
compilers’ interpretations of this in future.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://gitlab.gnome.org/GNOME/glib/issues/1663
2019-01-23 13:23:53 +00:00
..
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-12-18 12:24:17 +01:00
2017-05-24 11:58:19 +02:00
2018-04-26 15:19:17 +01:00
2018-12-17 16:19:31 -05:00
2018-12-28 15:30:28 +01:00
2017-05-24 11:58:19 +02:00
2018-12-21 13:22:55 +00:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-12-22 14:36:56 +05:30
2018-06-11 14:59:39 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-12-17 17:16:03 +00:00
2017-05-24 11:58:19 +02:00
2018-12-17 17:16:03 +00:00
2018-08-07 12:20:37 +01:00
2018-11-27 10:40:35 +00:00
2017-05-24 11:58:19 +02:00
2018-07-18 14:26:47 +02:00
2017-05-24 11:58:19 +02:00