mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-03 17:48:56 +01:00 
			
		
		
		
	Make computation of "biggest_pointer" vaguely more portable. (#137498,
Fri Mar 19 11:07:06 2004 Owen Taylor <otaylor@redhat.com> * tests/atomic-test.c (main): Make computation of "biggest_pointer" vaguely more portable. (#137498, Jonas Jonsson)
This commit is contained in:
		@@ -1,3 +1,9 @@
 | 
			
		||||
Fri Mar 19 11:07:06 2004  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* tests/atomic-test.c (main): Make computation
 | 
			
		||||
	of "biggest_pointer" vaguely more portable.
 | 
			
		||||
	(#137498, Jonas Jonsson)
 | 
			
		||||
 | 
			
		||||
2004-03-16  Tor Lillqvist  <tml@iki.fi>
 | 
			
		||||
 | 
			
		||||
	* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,9 @@
 | 
			
		||||
Fri Mar 19 11:07:06 2004  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* tests/atomic-test.c (main): Make computation
 | 
			
		||||
	of "biggest_pointer" vaguely more portable.
 | 
			
		||||
	(#137498, Jonas Jonsson)
 | 
			
		||||
 | 
			
		||||
2004-03-16  Tor Lillqvist  <tml@iki.fi>
 | 
			
		||||
 | 
			
		||||
	* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,9 @@
 | 
			
		||||
Fri Mar 19 11:07:06 2004  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* tests/atomic-test.c (main): Make computation
 | 
			
		||||
	of "biggest_pointer" vaguely more portable.
 | 
			
		||||
	(#137498, Jonas Jonsson)
 | 
			
		||||
 | 
			
		||||
2004-03-16  Tor Lillqvist  <tml@iki.fi>
 | 
			
		||||
 | 
			
		||||
	* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,9 @@
 | 
			
		||||
Fri Mar 19 11:07:06 2004  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* tests/atomic-test.c (main): Make computation
 | 
			
		||||
	of "biggest_pointer" vaguely more portable.
 | 
			
		||||
	(#137498, Jonas Jonsson)
 | 
			
		||||
 | 
			
		||||
2004-03-16  Tor Lillqvist  <tml@iki.fi>
 | 
			
		||||
 | 
			
		||||
	* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,9 @@
 | 
			
		||||
Fri Mar 19 11:07:06 2004  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* tests/atomic-test.c (main): Make computation
 | 
			
		||||
	of "biggest_pointer" vaguely more portable.
 | 
			
		||||
	(#137498, Jonas Jonsson)
 | 
			
		||||
 | 
			
		||||
2004-03-16  Tor Lillqvist  <tml@iki.fi>
 | 
			
		||||
 | 
			
		||||
	* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,9 @@
 | 
			
		||||
Fri Mar 19 11:07:06 2004  Owen Taylor  <otaylor@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* tests/atomic-test.c (main): Make computation
 | 
			
		||||
	of "biggest_pointer" vaguely more portable.
 | 
			
		||||
	(#137498, Jonas Jonsson)
 | 
			
		||||
 | 
			
		||||
2004-03-16  Tor Lillqvist  <tml@iki.fi>
 | 
			
		||||
 | 
			
		||||
	* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ main (int   argc,
 | 
			
		||||
  gint i;
 | 
			
		||||
  gint atomic = -5;
 | 
			
		||||
  gpointer atomic_pointer = NULL;
 | 
			
		||||
  gpointer biggest_pointer = atomic_pointer - 1;
 | 
			
		||||
  gpointer biggest_pointer = (gpointer)((gsize)atomic_pointer - 1);
 | 
			
		||||
 | 
			
		||||
  for (i = 0; i < 15; i++)
 | 
			
		||||
    g_atomic_int_inc (&atomic);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user