Bug #96973 remove the c macros set_if_bigger and set_if_smaller
Submitted: 23 Sep 2019 11:24 Modified: 25 Sep 2019 18:59
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.19 OS:Any
Assigned to: CPU Architecture:Any

[23 Sep 2019 11:24] Tor Didriksen
Description:
Remove C macros set_if_bigger and set_if_smaller.
Use standard C++ constructs instead.

How to repeat:
Read the code.

Suggested fix:
set_if_bigger(a,b) => a = std::max(a,b)
set_if_smaller(a,b) => a = std::min(a,b)
[25 Sep 2019 18:59] Paul DuBois
Posted by developer:
 
Fixed in 8.0.19.

Code cleanup. No changelog entry required.