Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#27 closed defect (fixed)

unsigned-c-string does not work as advertised

Reported by: sjamaan Owned by: felix winkelmann
Priority: minor Milestone:
Component: compiler Version:
Keywords: ffi, unsigned, strings Cc:
Estimated difficulty:

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.

Change History (5)

comment:1 Changed 10 years ago by sjamaan

Component: build systemcompiler

comment:2 Changed 10 years ago by felix winkelmann

Milestone: 4.1.0

comment:3 Changed 10 years ago by felix winkelmann

Please try r14799 and close the ticket if it works for you.

comment:4 Changed 10 years ago by sjamaan

Resolution: fixed
Status: newclosed

Yup, works fine. Thanks!

comment:5 Changed 10 years ago by (none)

Milestone: 4.1.0

Milestone 4.1.0 deleted

Note: See TracTickets for help on using tickets.