pthreads: fix `NativePthread::equal`
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 25 Nov 2014 16:54:42 +0000 (11:54 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 25 Nov 2014 16:56:46 +0000 (11:56 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/pthreads/pthreads.nit

index d4af111..98fc113 100644 (file)
@@ -122,7 +122,7 @@ private extern class NativePthread in "C" `{ pthread_t * `}
                return pattr;
        `}
 
-       fun equal(other: NativePthread): Bool `{ pthread_equal(*recv, *other); `}
+       fun equal(other: NativePthread): Bool `{ return pthread_equal(*recv, *other); `}
 
        fun kill(signal: Int) `{ pthread_kill(*recv, signal); `}
 end