mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 00:30:07 +02:00
... Assuming that large unsigned magnitudes with high order bit set are not the problem, but signed negatives of small magnitude may be: 1) Always cast the unsigned to signed in comparisons, not the other way. Also: 2) Cast unsigned TERM to signed by itself, before subtracting. Don't cast the result. 3) Rewrite some comparisons by moving subtracted term to other side. See commits d2fe7b1757d77d93d82d53685a118517a4d2e996 f463eda36c059236ecc168919c745eb687170c95