diff options
author | Alberto Ruiz <aruiz@um.es> | 2012-03-13 15:23:30 +0100 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2012-03-13 15:23:30 +0100 |
commit | b959655b75da207fd7ac1c785a6ea9924d70d5a6 (patch) | |
tree | 0031778af5633100993d8447a5cbe021b1d3066f /examples/devel/ej1 | |
parent | c5fcca336f7d1ad6235d411268d8ff946bbe7f0c (diff) | |
parent | 0904bbd0befa48e98858def1b6d036c5b2f00bf1 (diff) |
Merge branch 'unsafe' into develop
Diffstat (limited to 'examples/devel/ej1')
-rw-r--r-- | examples/devel/ej1/wrappers.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/devel/ej1/wrappers.hs b/examples/devel/ej1/wrappers.hs index b329464..a88f74b 100644 --- a/examples/devel/ej1/wrappers.hs +++ b/examples/devel/ej1/wrappers.hs | |||
@@ -15,7 +15,7 @@ main = do | |||
15 | 15 | ||
16 | ----------------------------------------------------- | 16 | ----------------------------------------------------- |
17 | 17 | ||
18 | foreign import ccall "c_scale_vector" | 18 | foreign import ccall unsafe "c_scale_vector" |
19 | cScaleVector :: Double -- scale | 19 | cScaleVector :: Double -- scale |
20 | -> CInt -> Ptr Double -- argument | 20 | -> CInt -> Ptr Double -- argument |
21 | -> CInt -> Ptr Double -- result | 21 | -> CInt -> Ptr Double -- result |
@@ -29,7 +29,7 @@ myScale s x = unsafePerformIO $ do | |||
29 | ----------------------------------------------------- | 29 | ----------------------------------------------------- |
30 | -- forcing row order | 30 | -- forcing row order |
31 | 31 | ||
32 | foreign import ccall "c_diag" | 32 | foreign import ccall unsafe "c_diag" |
33 | cDiag :: CInt -> CInt -> Ptr Double -- argument | 33 | cDiag :: CInt -> CInt -> Ptr Double -- argument |
34 | -> CInt -> Ptr Double -- result1 | 34 | -> CInt -> Ptr Double -- result1 |
35 | -> CInt -> CInt -> Ptr Double -- result2 | 35 | -> CInt -> CInt -> Ptr Double -- result2 |