shithub: mc

Download patch

ref: c0c0b95a971cc5da839e7453ac3c7c069b5f20cd
parent: 4efbb423950483a2deec1384c732a5d34fe639c7
author: iriri <iri@konnichiwastevenspielbergde.su>
date: Thu Jul 26 18:19:36 EDT 2018

Fix typo in plan 9 mksem.

--- a/lib/thread/sem+plan9.myr
+++ b/lib/thread/sem+plan9.myr
@@ -17,7 +17,7 @@
 ;;
 
 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]
 }