From 409df95d5c47c146460744812d4745f4c59494a7 Mon Sep 17 00:00:00 2001 From: retropikzel Date: Sat, 20 Jul 2024 20:27:19 +0300 Subject: [PATCH] Small guile fixes --- retropikzel/r7rs-pffi/version/guile.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/retropikzel/r7rs-pffi/version/guile.scm b/retropikzel/r7rs-pffi/version/guile.scm index dd6aa99..61812e5 100644 --- a/retropikzel/r7rs-pffi/version/guile.scm +++ b/retropikzel/r7rs-pffi/version/guile.scm @@ -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)))