Skip to content

Commit

Permalink
Merge pull request #7 from crogers1/x64
Browse files Browse the repository at this point in the history
x86_64: [xclibs] Make sure foreign calls use 64 types
  • Loading branch information
jean-edouard authored Mar 25, 2019
2 parents c47783e + 03e0832 commit 4ba9a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xchv4v/Tools/V4V.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ foreign import ccall "libv4v.h v4v_bind" c_v4v_bind :: CInt -> Ptr Addr -
foreign import ccall "libv4v.h v4v_connect" c_v4v_connect :: CInt -> Ptr Addr -> IO CInt
foreign import ccall "libv4v.h v4v_listen" c_v4v_listen :: CInt -> CInt -> IO CInt
foreign import ccall "libv4v.h v4v_accept" c_v4v_accept :: CInt -> Ptr Addr -> IO CInt
foreign import ccall "libv4v.h v4v_send" c_v4v_send :: CInt -> Ptr Word8 -> CUInt -> CInt -> IO CInt
foreign import ccall "libv4v.h v4v_recv" c_v4v_recv :: CInt -> Ptr Word8 -> CUInt -> CInt -> IO CInt
foreign import ccall "libv4v.h v4v_send" c_v4v_send :: CInt -> Ptr Word8 -> CULong -> CInt -> IO CLong
foreign import ccall "libv4v.h v4v_recv" c_v4v_recv :: CInt -> Ptr Word8 -> CULong -> CInt -> IO CLong
foreign import ccall "libv4v.h v4v_getsockopt" c_v4v_getsockopt :: CInt -> CInt -> CInt -> Ptr () -> Ptr Int -> IO Int

int :: (Integral a, Num b) => a -> b
Expand Down

0 comments on commit 4ba9a67

Please sign in to comment.