Summary
unsigned-c-string does not work as advertised
Metadata
- Id: a6fe37578ec1fd6fd38e0451bb46fc0af5ae0567
- Trac id: 27
- Type: defect
- Reporter: sjamaan
- Owner: felix
- Cc:
- Status: closed
- Component: compiler
- Estimated difficulty:
- Resolution: fixed
- Priority: minor
- Milestone:
- Version:
- Changetime: 2009-12-01 16:01:13 UTC
- Created: 2009-05-21 18:10:47 UTC
- Keywords: ffi, unsigned, strings
Description
When trying to call a foreign C function that accepts "unsigned char *" arguments, I get compiler warnings "pointer targets in passing argument N of 'X' differ in signedness".
This is caused because unsigned-c-string(*) results in the same generated code as c-string(*). This happens on Chicken 4 and also on the current version of Chicken 3.
Changes and comments
[2009-05-21 18:27:22 UTC] sjamaan changed component from build system to compiler
[2009-05-22 13:08:21 UTC] felix set milestone to 4.1.0
[2009-05-26 23:47:16 UTC] felix wrote:
Please try r14799 and close the ticket if it works for you.
[2009-05-27 20:33:56 UTC] sjamaan changed status from new to closed
[2009-05-27 20:33:56 UTC] sjamaan set resolution to fixed
[2009-05-27 20:33:56 UTC] sjamaan wrote:
Yup, works fine. Thanks!