File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,15 +185,15 @@ def p_as_triple(dec):
185
185
coeff = int (s ) if s else 0
186
186
187
187
if coeff < 0 or coeff >= 2 ** 128 :
188
- raise ValueError ("value out of bounds for a uint128 triple" );
188
+ raise ValueError ("value out of bounds for a uint128 triple" )
189
189
190
190
return (sign , coeff , exp )
191
191
192
192
def p_from_triple (triple ):
193
193
sign , coeff , exp = triple
194
194
195
195
if coeff < 0 or coeff >= 2 ** 128 :
196
- raise ValueError ("value out of bounds for a uint128 triple" );
196
+ raise ValueError ("value out of bounds for a uint128 triple" )
197
197
198
198
digits = tuple (int (c ) for c in str (coeff ))
199
199
@@ -894,7 +894,7 @@ def verify(t, stat):
894
894
t .presults .append (str (t .rp .real ))
895
895
896
896
ctriple = None
897
- if t . funcname not in [ '__radd__' , '__rmul__' ] : # see skip handler
897
+ if str ( t . rc ) == str ( t . rp ) : # see skip handler
898
898
try :
899
899
ctriple = c_as_triple (t .rc )
900
900
except ValueError :
You can’t perform that action at this time.
0 commit comments