Revision: 2388
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2388
Author: proski
Date: 2009-07-01 23:38:40 +0000 (Wed, 01 Jul 2009)
Log Message:
-----------
2009-07-01 Pavel Roskin <[email protected]>
* include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
using signed long int constants.
Modified Paths:
--------------
trunk/grub2/ChangeLog
trunk/grub2/include/grub/types.h
Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog 2009-07-01 23:07:17 UTC (rev 2387)
+++ trunk/grub2/ChangeLog 2009-07-01 23:38:40 UTC (rev 2388)
@@ -1,5 +1,8 @@
2009-07-01 Pavel Roskin <[email protected]>
+ * 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.
Modified: trunk/grub2/include/grub/types.h
===================================================================
--- trunk/grub2/include/grub/types.h 2009-07-01 23:07:17 UTC (rev 2387)
+++ trunk/grub2/include/grub/types.h 2009-07-01 23:38:40 UTC (rev 2388)
@@ -102,12 +102,12 @@
#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