mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-25 21:46: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>
|
2004-03-16 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
|
* 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>
|
2004-03-16 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
|
* 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>
|
2004-03-16 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
|
* 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>
|
2004-03-16 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
|
* 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>
|
2004-03-16 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
|
* 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>
|
2004-03-16 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
|
* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
|
||||||
|
@ -13,7 +13,7 @@ main (int argc,
|
|||||||
gint i;
|
gint i;
|
||||||
gint atomic = -5;
|
gint atomic = -5;
|
||||||
gpointer atomic_pointer = NULL;
|
gpointer atomic_pointer = NULL;
|
||||||
gpointer biggest_pointer = atomic_pointer - 1;
|
gpointer biggest_pointer = (gpointer)((gsize)atomic_pointer - 1);
|
||||||
|
|
||||||
for (i = 0; i < 15; i++)
|
for (i = 0; i < 15; i++)
|
||||||
g_atomic_int_inc (&atomic);
|
g_atomic_int_inc (&atomic);
|
||||||
|
Loading…
Reference in New Issue
Block a user