Skip to content

Commit

Permalink
Fix typo in Concurrency.Raw
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinb committed Jan 1, 2014
1 parent 67ebb54 commit 395322b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/base/System/Concurrency/Raw.idr
Expand Up @@ -14,7 +14,7 @@ sendToThread {a} dest val
[FPtr, FPtr, FAny a] FUnit) prim__vm dest val

checkMsgs : IO Bool
checkMsgs = do msgs <- mkForeign (FFun "idris_checkMessage"
checkMsgs = do msgs <- mkForeign (FFun "idris_checkMessages"
[FPtr] FInt) prim__vm
return (intToBool msgs)

Expand Down
2 changes: 1 addition & 1 deletion libs/prelude/Prelude/Basics.idr
Expand Up @@ -13,7 +13,7 @@ the _ = id

-- | Constant function.
const : a -> b -> a
const x _ = x
const x = \v => x

-- | Return the first element of a pair.
fst : (s, t) -> s
Expand Down
2 changes: 1 addition & 1 deletion rts/idris_rts.c
Expand Up @@ -602,7 +602,7 @@ void idris_sendMessage(VM* sender, VM* dest, VAL msg) {

pthread_mutex_lock(&(dest->inbox_lock));
*(dest->inbox_write) = dmsg;

dest->inbox_write++;
if (dest->inbox_write >= dest->inbox_end) {
dest->inbox_write = dest->inbox;
Expand Down

0 comments on commit 395322b

Please sign in to comment.