Bugfix: Casting int to size_t
This commit is contained in:
parent
a3520970f6
commit
9d58219557
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
//We support watching 2^n byte values, from 1 to 64. Calculate the mask for that.
|
||||||
for (int x = 0; x < 7; x++) {
|
for (int x = 0; x < 7; x++) {
|
||||||
if (size == (1 << x)) {
|
if (size == (size_t)(1 << x)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dbreakc <<= 1;
|
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.
|
//We support watching 2^n byte values, from 1 to 64. Calculate the mask for that.
|
||||||
for (int x = 0; x < 7; x++) {
|
for (int x = 0; x < 7; x++) {
|
||||||
if (size == (1 << x)) {
|
if (size == (size_t)(1 << x)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dbreakc <<= 1;
|
dbreakc <<= 1;
|
||||||
|
|
Loading…
Reference in a new issue