mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
fixed off-by-one error, so we don't waste a loop iteration if (-1) was
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org> * glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste a loop iteration if (-1) was passed, reported by Andreas Bombe <andreas.bombe@munich.netsurf.de>.
This commit is contained in:
parent
318392b51c
commit
5b0bbc2924
@ -1,3 +1,9 @@
|
||||
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste
|
||||
a loop iteration if (-1) was passed, reported by Andreas Bombe
|
||||
<andreas.bombe@munich.netsurf.de>.
|
||||
|
||||
Fri Nov 13 15:17:34 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glist.c gslist.c glib.h: Added g_list_sort() and
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste
|
||||
a loop iteration if (-1) was passed, reported by Andreas Bombe
|
||||
<andreas.bombe@munich.netsurf.de>.
|
||||
|
||||
Fri Nov 13 15:17:34 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glist.c gslist.c glib.h: Added g_list_sort() and
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste
|
||||
a loop iteration if (-1) was passed, reported by Andreas Bombe
|
||||
<andreas.bombe@munich.netsurf.de>.
|
||||
|
||||
Fri Nov 13 15:17:34 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glist.c gslist.c glib.h: Added g_list_sort() and
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste
|
||||
a loop iteration if (-1) was passed, reported by Andreas Bombe
|
||||
<andreas.bombe@munich.netsurf.de>.
|
||||
|
||||
Fri Nov 13 15:17:34 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glist.c gslist.c glib.h: Added g_list_sort() and
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste
|
||||
a loop iteration if (-1) was passed, reported by Andreas Bombe
|
||||
<andreas.bombe@munich.netsurf.de>.
|
||||
|
||||
Fri Nov 13 15:17:34 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glist.c gslist.c glib.h: Added g_list_sort() and
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste
|
||||
a loop iteration if (-1) was passed, reported by Andreas Bombe
|
||||
<andreas.bombe@munich.netsurf.de>.
|
||||
|
||||
Fri Nov 13 15:17:34 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glist.c gslist.c glib.h: Added g_list_sort() and
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste
|
||||
a loop iteration if (-1) was passed, reported by Andreas Bombe
|
||||
<andreas.bombe@munich.netsurf.de>.
|
||||
|
||||
Fri Nov 13 15:17:34 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glist.c gslist.c glib.h: Added g_list_sort() and
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste
|
||||
a loop iteration if (-1) was passed, reported by Andreas Bombe
|
||||
<andreas.bombe@munich.netsurf.de>.
|
||||
|
||||
Fri Nov 13 15:17:34 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glist.c gslist.c glib.h: Added g_list_sort() and
|
||||
|
2
glib.h
2
glib.h
@ -1559,7 +1559,7 @@ g_bit_nth_msf (guint32 mask,
|
||||
gint nth_bit)
|
||||
{
|
||||
if (nth_bit < 0)
|
||||
nth_bit = 33;
|
||||
nth_bit = 32;
|
||||
do
|
||||
{
|
||||
nth_bit--;
|
||||
|
@ -1559,7 +1559,7 @@ g_bit_nth_msf (guint32 mask,
|
||||
gint nth_bit)
|
||||
{
|
||||
if (nth_bit < 0)
|
||||
nth_bit = 33;
|
||||
nth_bit = 32;
|
||||
do
|
||||
{
|
||||
nth_bit--;
|
||||
|
Loading…
Reference in New Issue
Block a user