]> git.llucax.com Git - software/eventxx.git/blobdiff - test/mixed-way.cpp
Avoid a weird gcc warning when compiling with optimizations.
[software/eventxx.git] / test / mixed-way.cpp
index 02dfabc34103fee54e8df5cd4cfbe6015a5f9ffc..daea2e67a85128de8d0da0e8857fc6824dd81011 100644 (file)
@@ -7,7 +7,7 @@ struct handler
        eventxx::dispatcher& d;
        int i;
        handler(eventxx::dispatcher& d): d(d), i(0) {}
        eventxx::dispatcher& d;
        int i;
        handler(eventxx::dispatcher& d): d(d), i(0) {}
-       void operator() (int signum, short event)
+       void operator() (int signum, eventxx::type event)
        {
                if (i < 5) std::cout << "keep going...\n";
                else
        {
                if (i < 5) std::cout << "keep going...\n";
                else