fix ↕1‿0‿1e9‿1e9‿1e9 incorrectly erroring
This commit is contained in:
parent
9d9c3fe8ac
commit
2259e7b6a9
@ -76,10 +76,9 @@ B ud_c1(B t, B x) {
|
|||||||
bool bad=false, good=false;
|
bool bad=false, good=false;
|
||||||
for (usz i = xia; i--; ) {
|
for (usz i = xia; i--; ) {
|
||||||
usz c = o2s(GetU(x, i));
|
usz c = o2s(GetU(x, i));
|
||||||
good = c==0;
|
|
||||||
bad|= c > I32_MAX;
|
|
||||||
sh[i] = c;
|
sh[i] = c;
|
||||||
bad|= mulOn(ria, c);
|
good|= c==0;
|
||||||
|
bad|= (c > I32_MAX) | mulOn(ria, c);
|
||||||
}
|
}
|
||||||
if (bad && !good) thrM("↕: Result too large");
|
if (bad && !good) thrM("↕: Result too large");
|
||||||
decG(x);
|
decG(x);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user