File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,9 @@ def apply_states(self) -> None:
9696 self ._tininess_mode = sf .get_tininess_mode ()
9797 self ._rounding_mode = sf .get_rounding_mode ()
9898 self ._exception_flags = sf .get_exception_flags ()
99- if self ._port_ft .data [0 ] is not None and int .from_bytes (self ._port_ft .data [0 ]) in sf .TininessMode :
99+ if self ._port_ft .data [0 ] is not None and int .from_bytes (self ._port_ft .data [0 ]) in [ m . value for m in sf .TininessMode ] :
100100 sf .set_tininess_mode (sf .TininessMode (int .from_bytes (self ._port_ft .data [0 ])))
101- if self ._port_fr .data [0 ] is not None and int .from_bytes (self ._port_fr .data [0 ]) in sf .RoundingMode :
101+ if self ._port_fr .data [0 ] is not None and int .from_bytes (self ._port_fr .data [0 ]) in [ m . value for m in sf .RoundingMode ] :
102102 sf .set_rounding_mode (sf .RoundingMode (int .from_bytes (self ._port_fr .data [0 ])))
103103 if self ._port_fe_i .data [0 ] is not None :
104104 sf .set_exception_flags (int .from_bytes (self ._port_fe_i .data [0 ]))
You can’t perform that action at this time.
0 commit comments