Fix handle of constant expressions containing character literals (e.g. 'x').
Fixes bug #1474463. Fix type of result of << and >> to match C rules (the type depends only on the left argument). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9354 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
493cedbff9
commit
429d55824d
2 changed files with 23 additions and 11 deletions
|
|
@ -495,7 +495,7 @@ int Language::constantDirective(Node *n) {
|
|||
value = NewStringf("%(escape)s", value);
|
||||
}
|
||||
*/
|
||||
Setattr(n,"rawvalue",value);
|
||||
Setattr(n,"rawval",value);
|
||||
value = NewStringf("%(escape)s", value);
|
||||
if (!Len(value)) Append(value,"\\0");
|
||||
/* Printf(stdout,"'%s' = '%s'\n", name, value); */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue