Opened 17 years ago

Closed 17 years ago

Last modified 16 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 by sjamaan, 17 years ago

Component: build systemcompiler

comment:2 by felix winkelmann, 17 years ago

Milestone: 4.1.0

comment:3 by felix winkelmann, 17 years ago

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

comment:4 by sjamaan, 17 years ago

Resolution: fixed
Status: newclosed

Yup, works fine. Thanks!

comment:5 by (none), 16 years ago

Milestone: 4.1.0

Milestone 4.1.0 deleted

Note: See TracTickets for help on using tickets.