]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-07-01 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Wed, 1 Jul 2009 23:38:40 +0000 (23:38 +0000)
committerproski <proski@localhost>
Wed, 1 Jul 2009 23:38:40 +0000 (23:38 +0000)
* include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
using signed long int constants.

ChangeLog
include/grub/types.h

index d151d9b4221b20e76976de6235bf5d0b0ce7925f..8af6cd441f3223731e28c67461ac11f8dce96e1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-07-01  Pavel Roskin  <proski@gnu.org>
 
+       * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
+       using signed long int constants.
+
        * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
        constant to avoid a warning on FreeBSD.
 
index 3eb8290af4642cb81e9a58e743315efe8613253c..8e2ad15efb45872381ff7bfc0782328e63a59e6d 100644 (file)
@@ -102,12 +102,12 @@ typedef grub_int32_t      grub_ssize_t;
 
 #if GRUB_CPU_SIZEOF_VOID_P == 8
 # define GRUB_ULONG_MAX 18446744073709551615UL
-# define GRUB_LONG_MAX 9223372036854775807UL
-# define GRUB_LONG_MIN -9223372036854775808UL
+# define GRUB_LONG_MAX 9223372036854775807L
+# define GRUB_LONG_MIN (-9223372036854775807L - 1)
 #else
 # define GRUB_ULONG_MAX 4294967295UL
-# define GRUB_LONG_MAX 2147483647UL
-# define GRUB_LONG_MIN -2147483648UL
+# define GRUB_LONG_MAX 2147483647L
+# define GRUB_LONG_MIN (-2147483647L - 1)
 #endif
 
 #if GRUB_CPU_SIZEOF_VOID_P == 4