This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 759a374
committed
com.livecode.math: Don't find min/max if error is detected
If the list passed to `MCMathEvalMinMaxList()` is empty or contains
non-Number elements, return rather than creating an error and carrying
on.
This fixes a bug where `kMCNull` was being cast to an `MCNumberRef`
and passed to `MCNumberFetchAsReal()`.1 parent 5dfd2fd commit 759a374
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
346 | 347 | | |
| 348 | + | |
| 349 | + | |
347 | 350 | | |
348 | 351 | | |
| 352 | + | |
349 | 353 | | |
| 354 | + | |
| 355 | + | |
350 | 356 | | |
351 | 357 | | |
352 | 358 | | |
| |||
0 commit comments