]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
include/grub/types.h: Add GRUB_SSIZE_MAX
authorOliver Steffen <osteffen@redhat.com>
Fri, 26 May 2023 11:35:46 +0000 (13:35 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 1 Jun 2023 09:45:00 +0000 (11:45 +0200)
In the same way as GRUB_SIZE_MAX, add GRUB_SSIZE_MAX.

Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/types.h

index c56ce98202c3ef0c44520a4f4ca5a2ad9e262693..9f43a55809359e8a65e8185b5e7a632e5f8b1253 100644 (file)
@@ -122,6 +122,7 @@ typedef grub_uint64_t       grub_size_t;
 typedef grub_int64_t   grub_ssize_t;
 
 # define GRUB_SIZE_MAX 18446744073709551615UL
+# define GRUB_SSIZE_MAX 9223372036854775807L
 
 # if GRUB_CPU_SIZEOF_LONG == 8
 #  define PRIxGRUB_SIZE         "lx"
@@ -140,6 +141,7 @@ typedef grub_uint32_t       grub_size_t;
 typedef grub_int32_t   grub_ssize_t;
 
 # define GRUB_SIZE_MAX 4294967295UL
+# define GRUB_SSIZE_MAX 2147483647L
 
 # define PRIxGRUB_SIZE "x"
 # define PRIxGRUB_ADDR "x"