Skip to content

Commit

Permalink
soc/integration/soc: add_ethernet/add_ip_constants: cast str to int (…
Browse files Browse the repository at this point in the history
…avoid double quote in soc.h
  • Loading branch information
trabucayre committed Jan 24, 2024
1 parent f543b18 commit d320955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/soc/integration/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ def add_ip_constants(name, ip):
assert len(_ip) == 4
for n in range(4):
assert int(_ip[n]) < 256
self.add_constant(f"{name}{n+1}", _ip[n])
self.add_constant(f"{name}{n+1}", int(_ip[n]))
if local_ip:
add_ip_constants("LOCALIP", local_ip)
if remote_ip:
Expand Down

0 comments on commit d320955

Please sign in to comment.