summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2020-05-14 10:24:24 +0800
committerPatrick Georgi <pgeorgi@google.com>2020-05-18 07:34:55 +0000
commitcabcfe276c655ece78bec43ce238c2264d7e7823 (patch)
tree388b7ab5a20abaffd97efe827e07254da8cd1158 /payloads
parent7a05e6e2ad75dc1e28a50f3f309d8e7aecaf2526 (diff)
libpayload: Fix definitions of minimum integer values
Fix incorrectly defined constants INT16_MIN, INT32_MIN and INT64_MIN, which recursively call themselves. BRANCH=none BUG=none TEST=emerge-nami libpayload Change-Id: I1fa8402d318393de2e02f1e632ab78b6ec0768e8 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41391 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Joel Kitching <kitching@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/include/stdint.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/payloads/libpayload/include/stdint.h b/payloads/libpayload/include/stdint.h
index 1b2b97e7c1..3cb494a7f6 100644
--- a/payloads/libpayload/include/stdint.h
+++ b/payloads/libpayload/include/stdint.h
@@ -45,9 +45,9 @@ typedef long ptrdiff_t;
#define INT64_MAX (9223372036854775807LL)
#define INT8_MIN (-INT8_MAX - 1)
-#define INT16_MIN (-INT16_MIN - 1)
-#define INT32_MIN (-INT32_MIN - 1)
-#define INT64_MIN (-INT64_MIN - 1)
+#define INT16_MIN (-INT16_MAX - 1)
+#define INT32_MIN (-INT32_MAX - 1)
+#define INT64_MIN (-INT64_MAX - 1)
#define UINT8_MAX (255)
#define UINT16_MAX (65535)