mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +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:
parent
9798a722d4
commit
974dbaef86
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user