mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
gutils: Clarify return values of g_bit_nth_[lsf|msf]()
Clarify in the documentation that both functions return -1 if no high bits could be found.
This commit is contained in:
parent
b233d7e324
commit
91a6ec8d07
@ -493,7 +493,8 @@ g_find_program_in_path (const gchar *program)
|
||||
* from 0 (least significant) to sizeof(#gulong) * 8 - 1 (31 or 63,
|
||||
* usually). To start searching from the 0th bit, set @nth_bit to -1.
|
||||
*
|
||||
* Returns: the index of the first bit set which is higher than @nth_bit
|
||||
* Returns: the index of the first bit set which is higher than @nth_bit, or -1
|
||||
* if no higher bits are set
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -507,7 +508,8 @@ g_find_program_in_path (const gchar *program)
|
||||
* usually). To start searching from the last bit, set @nth_bit to
|
||||
* -1 or GLIB_SIZEOF_LONG * 8.
|
||||
*
|
||||
* Returns: the index of the first bit set which is lower than @nth_bit
|
||||
* Returns: the index of the first bit set which is lower than @nth_bit, or -1
|
||||
* if no lower bits are set
|
||||
*/
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user