diff --git a/compilerplugins/clang/fieldcast.py b/compilerplugins/clang/fieldcast.py index cc6d3f3e5b3c..fc09063571ee 100755 --- a/compilerplugins/clang/fieldcast.py +++ b/compilerplugins/clang/fieldcast.py @@ -54,7 +54,7 @@ def natural_sort_key(s, _nsre=re.compile('([0-9]+)')): return [int(text) if text.isdigit() else text.lower() for text in re.split(_nsre, s)] # sort by both the source-line and the datatype, so the output file ordering is stable -# when we have multiple fieldds declared on the same source line +# when we have multiple fields declared on the same source line def v_sort_key(v): return natural_sort_key(v[1]) + [v[0]]