This gives me a division by zero warning in AS: ``...
# android
h
This gives me a division by zero warning in AS:
Copy code
if (totalLengthInSeconds > 0) {
progressInPercent = currentProgressInSeconds * 100 / totalLengthInSeconds
}
Couldn't this situation be caught by the in other cases very perspicacious compiler?