Don't truncate cffi character constants
This commit is contained in:
parent
ac495d5c66
commit
e03d0b0525
1 changed files with 1 additions and 1 deletions
|
|
@ -1107,7 +1107,7 @@ String *CFFI::convert_literal(String *literal, String *type, bool try_to_split)
|
|||
return num;
|
||||
} else if (SwigType_type(type) == T_CHAR) {
|
||||
/* Use CL syntax for character literals */
|
||||
String* result = NewStringf("#\\%c", s[0]);
|
||||
String* result = NewStringf("#\\%s", s);
|
||||
Delete(num);
|
||||
return result;
|
||||
} else if (SwigType_type(type) == T_STRING) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue