Skip to content

Commit

Permalink
[ compat ] adjust to upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-hoeck committed Jan 14, 2024
1 parent 0c8d7de commit 97f3efa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion pack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ type = "local"
path = "docs"
ipkg = "uv-docs.ipkg"

[custom.all.array]
type = "git"
url = "https://github.com/stefan-hoeck/idris2-array"
commit = "latest:buffer"
ipkg = "array.ipkg"

[custom.all.bytestring]
type = "git"
url = "https://github.com/stefan-hoeck/idris2-bytestring"
commit = "latest:main"
commit = "latest:buffer"
ipkg = "bytestring.ipkg"
3 changes: 2 additions & 1 deletion src/System/UV/Pointer.idr
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module System.UV.Pointer

import IO.Async
import Data.Buffer
import Data.Buffer.Indexed
import Data.ByteString
import System.FFI
Expand Down Expand Up @@ -45,7 +46,7 @@ toString p s = toString <$> toByteString p s
export
fromByteString : HasIO io => ByteString -> io (Ptr Bits8)
fromByteString (BS s (BV b o _)) =
copyFromBuffer (unsafeToBuffer b) (cast s) (cast o)
copyFromBuffer (unsafeGetBuffer b) (cast s) (cast o)

||| Allocates a byte array to hold the data in the given bytestring.
export %inline
Expand Down

0 comments on commit 97f3efa

Please sign in to comment.