Summary
pointer-s8-ref should explicitly use signed char
Metadata
- Id: 0a699fcec9473d42e3ca3cc6b8cc888680ea0007
- Trac id: 54
- Type: defect
- Reporter: sjamaan
- Owner: felix
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: critical
- Milestone:
- Version: 4.0.x
- Changetime: 2009-12-01 16:01:13 UTC
- Created: 2009-07-05 11:57:16 UTC
- Keywords: pointer, signedness, platform dependent
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!) )
Changes and comments
[2009-07-06 10:56:57 UTC] felix changed status from new to closed
[2009-07-06 10:56:57 UTC] felix set resolution to fixed
[2009-07-06 10:56:57 UTC] felix wrote:
fixed in r15169. Thanks.