2009-04-15 Pavel Roskin <proski@gnu.org>

* include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
	LONG_MAX to GRUB_LONG_MAX.  Introduce GRUB_LONG_MIN.  Update all
	users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
	definitions.
This commit is contained in:
proski committed 2009-04-15 20:45:09 +00:00
1 parent 6b4c4aa38b
commit 41bb0fe9a6
7 files changed
+22 -13

No files matched your search

+4 -4
View File
@@ -81,13 +81,13 @@ grub_machine_init (void)
{
#if GRUB_CPU_SIZEOF_VOID_P == 4
/* Restrict ourselves to 32-bit memory space. */
if (addr > ULONG_MAX)
if (addr > GRUB_ULONG_MAX)
{
grub_upper_mem = ULONG_MAX;
grub_upper_mem = GRUB_ULONG_MAX;
return 0;
}
if (addr + size > ULONG_MAX)
size = ULONG_MAX - addr;
if (addr + size > GRUB_ULONG_MAX)
size = GRUB_ULONG_MAX - addr;
#endif
grub_upper_mem = grub_max (grub_upper_mem, addr + size);