Skip to content

Commit

Permalink
fix example code, atrodo++ for noticing
Browse files Browse the repository at this point in the history
  • Loading branch information
cotto committed Mar 14, 2011
1 parent 2489a7a commit 838cdc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/pdds/draft/pdd32_m0.pod
Expand Up @@ -394,9 +394,9 @@ arg0 = 12
arg1 = 10
lib = dlopen "libmath.so"
thunk = dlfunc lib, "multiply_int32"
set_ret thunk, ret, FFI_UINT32
set_arg thunk, arg0, FFI_UINT32
set_arg thunk, arg1, FFI_UINT32
set_ret thunk, FFI_UINT32, ret
set_arg thunk, FFI_UINT32, arg0
set_arg thunk, FFI_UINT32, arg1
ccall thunk
say ret # will print "120"

Expand Down

0 comments on commit 838cdc9

Please sign in to comment.