diff options
Diffstat (limited to 'compilerplugins/clang/fieldcast.py')
-rwxr-xr-x | compilerplugins/clang/fieldcast.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/fieldcast.py b/compilerplugins/clang/fieldcast.py index fc09063571ee..72640a361cd8 100755 --- a/compilerplugins/clang/fieldcast.py +++ b/compilerplugins/clang/fieldcast.py @@ -33,7 +33,7 @@ with io.open("workdir/loplugin.fieldcast.log", "r", buffering=1024*1024) as txt: definitionToTypeMap[fieldInfo] = fieldType definitionToSourceLocationMap[fieldInfo] = srcLoc - if not (fieldInfo in castMap): + if fieldInfo not in castMap: castMap[fieldInfo] = castToType elif castMap[fieldInfo] != "": # if we are not ignoring it # if it is cast to more than one type, mark it as being ignored |