Dear Marc,

Some time ago I reported some fixes for ev++.h. Mainly because it did not compile. And the fix was only to put some braces around some expressions, but browsing the code through cvs found that they are still missing. Is it by an accident only, or I am the stupid one who missed something?

I've attached the patch again.

Thanks in advance,
Kojedzinszky Richard
--- usr/include/ev++.h	2010-03-09 23:23:40.000000000 +0100
+++ /usr/include/ev++.h	2011-04-15 10:06:44.096326110 +0200
@@ -272,7 +272,7 @@
     template<class K, void (K::*method)(int)>
     static void method_thunk (int revents, void *arg)
     {
-      static_cast<K *>(arg)->*method
+      (static_cast<K *>(arg)->*method)
         (revents);
     }
 
@@ -286,7 +286,7 @@
     template<class K, void (K::*method)()>
     static void method_noargs_thunk (int revents, void *arg)
     {
-      static_cast<K *>(arg)->*method
+      (static_cast<K *>(arg)->*method)
         ();
     }
 
@@ -480,7 +480,7 @@
     template<class K, void (K::*method)()>
     static void method_noargs_thunk (EV_P_ ev_watcher *w, int revents)
     {
-      static_cast<K *>(w->data)->*method
+      (static_cast<K *>(w->data)->*method)
         ();
     }
 
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to