#54 closed defect (fixed)
pointer-s8-ref should explicitly use signed char
Reported by: | sjamaan | Owned by: | felix winkelmann |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | core libraries | Version: | 4.0.x |
Keywords: | pointer, signedness, platform dependent | Cc: | |
Estimated difficulty: |
Description
On some architectures (PowerPC, ARM), "char" is unsigned by default. On these platforms, the lolevel tests fail. This can be fixed simply by adding the "signed" qualifier:
(define pointer-s8-ref (getter-with-setter (foreign-lambda* int ([c-pointer p]) "return(*((signed char *)p));") pointer-s8-set!) )
Note: See
TracTickets for help on using
tickets.
fixed in r15169. Thanks.