Skip to content

Commit

Permalink
BLD: fix an implicit conversion error (char[2] -> int)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Aug 13, 2024
1 parent d4d4fd5 commit 8d06124
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ def get_extensions():
if liberfa_versions:
print('Configure liberfa ("configure.ac" scan)')
lines = []
for name, value in get_liberfa_versions():
lines.append(f'#define {name} "{value}"')
for name, value in liberfa_versions:
# making sure strings are correctly quoted
lines.append(f'#define {name} {value!r}'.replace("'", '"'))
with open(config_h, 'w') as fd:
fd.write('\n'.join(lines))
else:
Expand Down

0 comments on commit 8d06124

Please sign in to comment.