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 80b6daf commit 0e9d5e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/py/flwr/common/serde.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,10 @@ def _record_value_to_proto(
if isinstance(value, t):
if t == int:
# Handle int values for sint64 and uint64
if value < 0:
arg[_type_to_field[t]] = int(value) + (1 << 64)
if value < 0: # type: ignore
arg[_type_to_field[t]] = value + (1 << 64) # type: ignore
else:
arg[_type_to_field[t]] = int(value)
arg[_type_to_field[t]] = value # type: ignore

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

0 comments on commit 0e9d5e8

Please sign in to comment.