Re: g_ptr_array_sort crash
- From: Gyözö Both <gyboth bygfoot com>
- To: Tim Müller <zen18864 zen co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_ptr_array_sort crash
- Date: Sun, 13 Feb 2005 16:25:30 +0100
you were right, the compare function was to blame. the error happened
because two integers that were the same weren't the same after some
transformations to float, so the function didn't return 0, as it should
have. a nasty bug, that one.
gyözö
This might be happening because your compare function is inconsistent,
e.g. when
player_compare_func (foo, bar, x) returns a value < 0
and
player_compare_func (bar, foo, x) returns 0 (instead of a value >
0)
or
player_compare_func (bar, bar, x) returns a value != 0 (instead
of 0)
or something similar.
Cheers
-Tim
--
Just because your doctor has a name for your condition doesn't mean he
knows what it is.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]