[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tyndur-devel] [PATCH 4/5] Fix fuer INT_MIN



On Mon, Apr 13 18:26, Kevin Wolf wrote:
> ---
>  src/include/limits.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/include/limits.h b/src/include/limits.h
> index 53f635f..15640ef 100644
> --- a/src/include/limits.h
> +++ b/src/include/limits.h
> @@ -50,7 +50,7 @@
>  #define LONG_MIN -0x80000000
>  
>  #define INT_MAX 0x7FFFFFFF
> -#define INT_MIN -0x80000000
> +#define INT_MIN (-INT_MAX - 1)
>  
>  #define ULONG_MAX 0xFFFFFFFF
>  #define UINT_MAX 0xFFFFFFFF

Sieht lustig aus. ;-) Könnte das Problem bei anderen _MIN eventuell auch
noch bestehen (z.B. LONG_MIN)?

-- 
Antoine Kaufmann
<toni@xxxxxxxxxxxxxxxx>

Attachment: pgpZY3rePJe8i.pgp
Description: PGP signature