Add a floating-point suffix to silence warnings; NFC

This silences about 6000 warnings about truncating from double to float
with Visual Studio.
This commit is contained in:
Aaron Ballman 2020-11-04 10:06:44 -05:00
parent 7e2edf973b
commit 45e0f65162
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def header_guard(filename):
def boost_node(n, label, next_label):
"""Returns code snippet for a leaf/boost node."""
return "%s: return %s;" % (label, n['score'])
return "%s: return %sf;" % (label, n['score'])
def if_greater_node(n, label, next_label):