Summary

pointer-s8-ref should explicitly use signed char

Metadata

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.

[2009-12-01 16:01:13 UTC] Milestone 4.1.0 deleted