Be more tolerant of invalid arguments
FossilOrigin-Name: d2f07d884a4f4319ff687e085c3233e210ee05b46a2675ecd757a261e6f19e6e
This commit is contained in:
parent
f1968ce5af
commit
38747afbb5
12 changed files with 112 additions and 88 deletions
|
@ -23,12 +23,17 @@
|
|||
x = _text.intValue;
|
||||
} @catch (OFInvalidFormatException *e) {
|
||||
x = 0;
|
||||
} @catch (OFOutOfRangeException *e) {
|
||||
x = 0;
|
||||
}
|
||||
|
||||
@try {
|
||||
@
|
||||
try {
|
||||
y = otherItem.text.intValue;
|
||||
} @catch (OFInvalidFormatException *e) {
|
||||
y = 0;
|
||||
} @catch (OFOutOfRangeException *e) {
|
||||
y = 0;
|
||||
}
|
||||
|
||||
if (x > y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue