CFFI - fix junk output when wrapping single character constants
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13944 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
89052f3b0a
commit
7ca0497647
2 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,8 @@ Version 2.0.9 (in progress)
|
|||
This make module loading behaviour reliably consistent, and reduces problems when loading modules which
|
||||
depend on other modules which may not have been previously loaded.
|
||||
|
||||
*** POTENTIAL INCOMPATIBILITY ***
|
||||
2012-11-27: wsfulton
|
||||
[cffi] Fix junk output when wrapping single character literal constants.
|
||||
|
||||
2012-11-17: wsfulton
|
||||
[Tcl, Modula3] Add missing support for -outdir.
|
||||
|
|
|
|||
|
|
@ -1021,9 +1021,8 @@ 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[2]);
|
||||
String* result = NewStringf("#\\%c", s[0]);
|
||||
Delete(num);
|
||||
// Printf(stderr, "%s %c %d", s, s[2], s);
|
||||
return result;
|
||||
} else if (SwigType_type(type) == T_STRING) {
|
||||
/* Use CL syntax for string literals */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue