gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two

gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two
pointers more than 4G apart.
This commit is contained in:
Elliot Lee
2000-03-22 21:41:45 +00:00
parent 142219f278
commit 916d4db104
10 changed files with 42 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2000-03-22 Elliot Lee <sopwith@redhat.com>
* gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two pointers more
than 4G apart.
2000-03-22 Tor Lillqvist <tml@iki.fi>
* gutils.c: Move Win32-only includes after inclusion of glib.h, so

View File

@@ -1,3 +1,7 @@
2000-03-22 Elliot Lee <sopwith@redhat.com>
* gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two pointers more
than 4G apart.
2000-03-22 Tor Lillqvist <tml@iki.fi>
* gutils.c: Move Win32-only includes after inclusion of glib.h, so

View File

@@ -1,3 +1,7 @@
2000-03-22 Elliot Lee <sopwith@redhat.com>
* gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two pointers more
than 4G apart.
2000-03-22 Tor Lillqvist <tml@iki.fi>
* gutils.c: Move Win32-only includes after inclusion of glib.h, so

View File

@@ -1,3 +1,7 @@
2000-03-22 Elliot Lee <sopwith@redhat.com>
* gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two pointers more
than 4G apart.
2000-03-22 Tor Lillqvist <tml@iki.fi>
* gutils.c: Move Win32-only includes after inclusion of glib.h, so

View File

@@ -1,3 +1,7 @@
2000-03-22 Elliot Lee <sopwith@redhat.com>
* gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two pointers more
than 4G apart.
2000-03-22 Tor Lillqvist <tml@iki.fi>
* gutils.c: Move Win32-only includes after inclusion of glib.h, so

View File

@@ -1,3 +1,7 @@
2000-03-22 Elliot Lee <sopwith@redhat.com>
* gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two pointers more
than 4G apart.
2000-03-22 Tor Lillqvist <tml@iki.fi>
* gutils.c: Move Win32-only includes after inclusion of glib.h, so

View File

@@ -1,3 +1,7 @@
2000-03-22 Elliot Lee <sopwith@redhat.com>
* gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two pointers more
than 4G apart.
2000-03-22 Tor Lillqvist <tml@iki.fi>
* gutils.c: Move Win32-only includes after inclusion of glib.h, so

View File

@@ -1,3 +1,7 @@
2000-03-22 Elliot Lee <sopwith@redhat.com>
* gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two pointers more
than 4G apart.
2000-03-22 Tor Lillqvist <tml@iki.fi>
* gutils.c: Move Win32-only includes after inclusion of glib.h, so

View File

@@ -931,7 +931,11 @@ static gint
g_mem_chunk_area_compare (GMemArea *a,
GMemArea *b)
{
return (a->mem - b->mem);
if (a->mem > b->mem)
return 1;
else if (a->mem < b->mem)
return -1;
return 0;
}
static gint

6
gmem.c
View File

@@ -931,7 +931,11 @@ static gint
g_mem_chunk_area_compare (GMemArea *a,
GMemArea *b)
{
return (a->mem - b->mem);
if (a->mem > b->mem)
return 1;
else if (a->mem < b->mem)
return -1;
return 0;
}
static gint