kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/cast_int_to_size_t_in_cpu_ll' into 'master'
soc: cast int to size_t in cpu_ll Closes IDFGH-3352 See merge request espressif/esp-idf!9077pull/5452/head
commit
58e1100473
|
@ -116,7 +116,7 @@ static inline void cpu_ll_set_watchpoint(int id,
|
|||
|
||||
//We support watching 2^n byte values, from 1 to 64. Calculate the mask for that.
|
||||
for (int x = 0; x < 7; x++) {
|
||||
if (size == (1 << x)) {
|
||||
if (size == (size_t)(1 << x)) {
|
||||
break;
|
||||
}
|
||||
dbreakc <<= 1;
|
||||
|
|
|
@ -110,7 +110,7 @@ static inline void cpu_ll_set_watchpoint(int id,
|
|||
|
||||
//We support watching 2^n byte values, from 1 to 64. Calculate the mask for that.
|
||||
for (int x = 0; x < 7; x++) {
|
||||
if (size == (1 << x)) {
|
||||
if (size == (size_t)(1 << x)) {
|
||||
break;
|
||||
}
|
||||
dbreakc <<= 1;
|
||||
|
|
Ładowanie…
Reference in New Issue