Skip to content

Commit

Permalink
Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadnaseri committed Sep 19, 2024
1 parent f3caa4f commit 80b6daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/py/flwr/common/serde.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ def _record_value_to_proto(
if t == int:
# Handle int values for sint64 and uint64
if value < 0:
arg[_type_to_field[t]] = value + (1 << 64) # type: ignore[operator]
arg[_type_to_field[t]] = int(value) + (1 << 64)
else:
arg[_type_to_field[t]] = value # type: ignore[operator]
arg[_type_to_field[t]] = int(value)

arg[_type_to_field[t]] = value
return proto_class(**arg)
Expand Down

0 comments on commit 80b6daf

Please sign in to comment.