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;
|
return num;
|
||||||
} else if (SwigType_type(type) == T_CHAR) {
|
} else if (SwigType_type(type) == T_CHAR) {
|
||||||
/* Use CL syntax for character literals */
|
/* Use CL syntax for character literals */
|
||||||
String* result = NewStringf("#\\%c", s[0]);
|
String* result = NewStringf("#\\%s", s);
|
||||||
Delete(num);
|
Delete(num);
|
||||||
return result;
|
return result;
|
||||||
} else if (SwigType_type(type) == T_STRING) {
|
} else if (SwigType_type(type) == T_STRING) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue