jlaitine opened a new pull request, #12633: URL: https://github.com/apache/nuttx/pull/12633
## Summary In the algorithm there is a subtraction (int - unsigned), which results (potentially overflowed) unsigned. Passing this to macro ABS and the assigning to int doesn't work ( unsigned is always >= 0 ). Fix this by replacing (dangerous) ABS macro with stdlib's standard "int abs(int)" and change the substraction to (int - int). ## Impact Fixes a bug in baud rate calculation ## Testing Tested in NXP IMX93 EVK board -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
