Small guile fixes
This commit is contained in:
parent
2a911690da
commit
409df95d5c
|
|
@ -131,16 +131,16 @@
|
|||
(lambda (pointer type offset)
|
||||
(let ((p (pointer->bytevector pointer (+ offset 100)))
|
||||
(native-type (pffi-type->native-type type)))
|
||||
(cond ((equal? native-type int8) (bytevector-s8-ref p offset (native-endianness)))
|
||||
((equal? native-type uint8) (bytevector-u8-ref p offset (native-endianness)))
|
||||
(cond ((equal? native-type int8) (bytevector-s8-ref p offset))
|
||||
((equal? native-type uint8) (bytevector-u8-ref p offset))
|
||||
((equal? native-type int16) (bytevector-s16-ref p offset (native-endianness)))
|
||||
((equal? native-type uint16) (bytevector-u16-ref p offset (native-endianness)))
|
||||
((equal? native-type int32) (bytevector-s32-ref p offset (native-endianness)))
|
||||
((equal? native-type uint32) (bytevector-u32-ref p offset (native-endianness)))
|
||||
((equal? native-type int64) (bytevector-s64-ref p offset (native-endianness)))
|
||||
((equal? native-type uint64) (bytevector-u64-ref p offset (native-endianness)))
|
||||
((equal? native-type short) (bytevector-s8-ref p offset (native-endianness)))
|
||||
((equal? native-type unsigned-short) (bytevector-u8-ref p offset (native-endianness)))
|
||||
((equal? native-type short) (bytevector-s8-ref p offset))
|
||||
((equal? native-type unsigned-short) (bytevector-u8-ref p offset))
|
||||
((equal? native-type int) (bytevector-sint-ref p offset (native-endianness) (pffi-size-of type)))
|
||||
((equal? native-type unsigned-int) (bytevector-uint-ref p offset (native-endianness) (pffi-size-of type)))
|
||||
((equal? native-type long) (bytevector-s64-ref p offset (native-endianness)))
|
||||
|
|
|
|||
Loading…
Reference in New Issue