Skip to content

Commit 45e0f65

Browse files
committed
Add a floating-point suffix to silence warnings; NFC
This silences about 6000 warnings about truncating from double to float with Visual Studio.
1 parent 7e2edf9 commit 45e0f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/quality/CompletionModelCodegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def header_guard(filename):
4040

4141
def boost_node(n, label, next_label):
4242
"""Returns code snippet for a leaf/boost node."""
43-
return "%s: return %s;" % (label, n['score'])
43+
return "%s: return %sf;" % (label, n['score'])
4444

4545

4646
def if_greater_node(n, label, next_label):

0 commit comments

Comments
 (0)