Fix generated code for constant expressions containing wchar_t L literals.
Such as: # define __WCHAR_MAX (0x7fffffff + L'\0') Reported on swig-user mailing list.
This commit is contained in:
parent
323d606d3c
commit
90ba174fce
13 changed files with 29 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ int SWIG_cparse_template_reduce(int treduce) {
|
|||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
static int promote_type(int t) {
|
||||
if (t <= T_UCHAR || t == T_CHAR) return T_INT;
|
||||
if (t <= T_UCHAR || t == T_CHAR || t == T_WCHAR) return T_INT;
|
||||
return t;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue