Eigenstate: myrddin-dev mailing list

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

[PATCH] Fix typo in plan 9 mksem.


---
 lib/thread/sem+plan9.myr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/thread/sem+plan9.myr b/lib/thread/sem+plan9.myr
index d760d516..221a8056 100644
--- a/lib/thread/sem+plan9.myr
+++ b/lib/thread/sem+plan9.myr
@@ -17,7 +17,7 @@ pkg thread =
 ;;
 
 const mksem = {v
-	std.assert((v : int32) > 0, "semaphore overflowed")
+	std.assert((v : int32) >= 0, "error: invalid initial semaphore value\n")
 	-> [._user = (v : int32), ._kern = 0]
 }
 
-- 
2.18.0