Commit 513e0988 authored by Kevin Wolf's avatar Kevin Wolf
Browse files

libc: stdint.h-Konstanten gefixt


! libc: (U)INTn_MAX und SIZE_MAX müssen per #if vergleichbar sein, also
  dürfen da keine Casts oder ähnliches verwendet werden
Signed-off-by: Kevin Wolf's avatarKevin Wolf <kevin@tyndur.org>
parent da801d18
No related merge requests found
Showing with 11 additions and 11 deletions
+11 -11
......@@ -37,13 +37,13 @@
#define INT16_MAX 32767
#define UINT16_MAX 65535
#define INT32_MIN ((int32_t) -0x80000000)
#define INT32_MIN -0x80000000
#define INT32_MAX 0x7FFFFFFF
#define UINT32_MAX ((uint32_t) -1)
#define UINT32_MAX 0xFFFFFFFFU
#define INT64_MIN ((int64_t) -0x8000000000000000LL)
#define INT64_MAX 0x7FFFFFFFFFFFFFFFLL
#define UINT64_MAX ((uint64_t) -1ULL)
#define INT64_MIN -0x8000000000000000L
#define INT64_MAX 0x7FFFFFFFFFFFFFFFL
#define UINT64_MAX 0xFFFFFFFFFFFFFFFFUL
typedef signed char int8_t;
typedef signed short int16_t;
......@@ -142,7 +142,7 @@ typedef uint64_t uintmax_t;
#define SIG_ATOMIC_MIN 0
#define SIG_ATOMIC_MAX UINT32_MAX
#define SIZE_MAX ((size_t) -1)
#define SIZE_MAX UINT32_MAX
/* Makros für Integerkonstanten */
......
......@@ -37,13 +37,13 @@
#define INT16_MAX 32767
#define UINT16_MAX 65535
#define INT32_MIN ((int32_t) -0x80000000)
#define INT32_MIN -0x80000000
#define INT32_MAX 0x7FFFFFFF
#define UINT32_MAX ((uint32_t) -1)
#define UINT32_MAX 0xFFFFFFFFU
#define INT64_MIN ((int64_t) -0x8000000000000000LL)
#define INT64_MIN -0x8000000000000000LL
#define INT64_MAX 0x7FFFFFFFFFFFFFFFLL
#define UINT64_MAX ((uint64_t) -1ULL)
#define UINT64_MAX 0xFFFFFFFFFFFFFFFFULL
typedef signed char int8_t;
typedef signed short int16_t;
......@@ -138,7 +138,7 @@ typedef uint64_t uintmax_t;
#define SIG_ATOMIC_MIN 0
#define SIG_ATOMIC_MAX UINT32_MAX
#define SIZE_MAX ((__SIZE_TYPE__) -1)
#define SIZE_MAX UINT32_MAX
/* Makros fuer Integerkonstanten */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment