Fix guile pointer access on pointer access
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
((equal? native-type unsigned-long) (bytevector-u64-set! p offset value (native-endianness)))
|
||||
((equal? native-type float) (bytevector-u64-set! p offset value (native-endianness)))
|
||||
((equal? native-type double) (bytevector-u64-set! p offset value (native-endianness)))
|
||||
((equal? native-type '*) (bytevector-sint-set! p offset value (native-endianness) (pffi-size-of type)))))))
|
||||
((equal? native-type '*) (bytevector-u32-set! p offset (pointer-address value) (native-endianness) (pffi-size-of type)))))))
|
||||
|
||||
(define pffi-pointer-get
|
||||
(lambda (pointer type offset)
|
||||
@@ -136,7 +136,7 @@
|
||||
((equal? native-type unsigned-long) (bytevector-u64-ref p offset (native-endianness)))
|
||||
((equal? native-type float) (bytevector-u64-ref p offset (native-endianness)))
|
||||
((equal? native-type double) (bytevector-u64-ref p offset (native-endianness)))
|
||||
((equal? native-type '*) (bytevector-sint-ref p offset (native-endianness) (pffi-size-of type)))))))
|
||||
((equal? native-type '*) (make-pointer (bytevector-u32-ref p offset (native-endianness))))))))
|
||||
|
||||
(define pffi-pointer-deref
|
||||
(lambda (pointer)
|
||||
|
||||
Reference in New Issue
Block a user