Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i.smap: fix possible pole error with log in extract function
Using logarithm function call with zero argument will lead to a pole error, which occurs if the mathematical function has an exact infinite result. Refactor the conditional to only execute the code when number of subclasses are more than 1, which would preemptively stop us from getting into situation where log would have a zero argument. In cases where number of subclasses are <= 0, set the default value to 0. This is necessary as `ll` points to malloc'd memory and can contain renadom value. Signed-off-by: Mohan Yelugoti <[email protected]>
- Loading branch information