mapping: disambiguate local variable el
Reported-by: Xcode Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
a0626f802a
commit
10c9362b4f
@ -132,6 +132,7 @@ namespace stdex
|
|||||||
return to;
|
return to;
|
||||||
|
|
||||||
size_t l, r;
|
size_t l, r;
|
||||||
|
{
|
||||||
const auto& el = mapping[m];
|
const auto& el = mapping[m];
|
||||||
if (to < el.to) {
|
if (to < el.to) {
|
||||||
l = 0;
|
l = 0;
|
||||||
@ -145,6 +146,7 @@ namespace stdex
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
return el.from;
|
return el.from;
|
||||||
|
}
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (l < r) {
|
if (l < r) {
|
||||||
@ -214,6 +216,7 @@ namespace stdex
|
|||||||
return from;
|
return from;
|
||||||
|
|
||||||
size_t l, r;
|
size_t l, r;
|
||||||
|
{
|
||||||
const auto& el = mapping[m];
|
const auto& el = mapping[m];
|
||||||
if (from < el.from) {
|
if (from < el.from) {
|
||||||
l = 0;
|
l = 0;
|
||||||
@ -227,6 +230,7 @@ namespace stdex
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
return el.to;
|
return el.to;
|
||||||
|
}
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (l < r) {
|
if (l < r) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user