swig/Source/Preprocessor
Olly Betts 204a5f7bf3 Fix a preprocessor expression evaluation bug
A subexpression in parentheses lost its string/int type flag and
instead used whatever type was left in the stack entry from
previous use.  In practice we mostly got away with this because
most preprocessor expressions are integer, but it could have
resulted in a preprocessor expression incorrectly evaluating as
zero.  If -Wextra was in use you got a warning:

Warning 202: Error: 'Can't mix strings and integers in expression'

Fixes #1384
2022-02-23 18:53:59 +13:00
..
cpp.c Fix -Wchar-subscripts warning 2021-04-26 22:32:52 +01:00
expr.c Fix a preprocessor expression evaluation bug 2022-02-23 18:53:59 +13:00
preprocessor.h const char * correctness fixes (in C code) 2012-11-26 20:30:37 +00:00