mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 11:44:31 +02:00
Bugfix: Casting int to size_t
This commit is contained in:
committed by
Vikram Dattu
parent
4bb9bb95d0
commit
57571ae908
@@ -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;
|
||||
|
Reference in New Issue
Block a user