[PATCH] small glib fix.



Hello,

this patch fixes the g_random_boolean macro. Is it ok to commit?

//andersca
andersca gnu org
? docs/reference/glib/glib-undocumented.txt
? docs/reference/gobject/gobject-undocumented.txt
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/glib/ChangeLog,v
retrieving revision 1.716
diff -u -r1.716 ChangeLog
--- ChangeLog	2001/05/30 11:12:12	1.716
+++ ChangeLog	2001/05/30 19:18:30
@@ -1,3 +1,7 @@
+2001-05-30  Anders Carlsson  <andersca codefactory se>
+
+	* grand.h (g_random_boolean): Fix macro.
+
 2001-05-30  Sebastian Wilhelmi  <wilhelmi ira uka de>
 
 	* gthread-2.0.pc.in: Add @G_THREAD_CFLAGS@ to Cflags.
Index: grand.h
===================================================================
RCS file: /cvs/gnome/glib/grand.h,v
retrieving revision 1.2
diff -u -r1.2 grand.h
--- grand.h	2000/12/19 15:57:51	1.2
+++ grand.h	2001/05/30 19:18:30
@@ -62,7 +62,7 @@
 
 void    g_random_set_seed      (guint32     seed);
 
-#define g_random_boolean() (g_rand_boolean ((rand)))
+#define g_random_boolean() (g_rand_int () & (1<<15))
 
 guint32 g_random_int           (void);
 gint32  g_random_int_range     (gint32      begin,
 











[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]