You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was running a static code analyzer on my project and it produced warnings that there are a few places in Cordio where there may be some bugs due to the ternary operator ?: having a lower precedence than the addition operator +.
In each of these cases, the ternary operator should looks like it should be evaluated before the addition operator, but it is not.
I was running a static code analyzer on my project and it produced warnings that there are a few places in Cordio where there may be some bugs due to the ternary operator
?:
having a lower precedence than the addition operator+
.In each of these cases, the ternary operator should looks like it should be evaluated before the addition operator, but it is not.
https://github.com/Analog-Devices-MSDK/msdk/blob/4461e6d6383ac7e31285534e4e4e1a87531e5baf/Libraries/Cordio/controller/sources/ble/lctr/lctr_main_conn.c#L1568
https://github.com/Analog-Devices-MSDK/msdk/blob/4461e6d6383ac7e31285534e4e4e1a87531e5baf/Libraries/Cordio/controller/sources/ble/lctr/lctr_main_adv_master_ae.c#L1307
https://github.com/Analog-Devices-MSDK/msdk/blob/4461e6d6383ac7e31285534e4e4e1a87531e5baf/Libraries/Cordio/controller/sources/ble/lctr/lctr_int_adv_master_ae.h#L477
The text was updated successfully, but these errors were encountered: