mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Fixed warning message with vc++.
This commit is contained in:
parent
02e1c8d38f
commit
ebcaf2c0b9
@ -143,7 +143,7 @@ private:
|
|||||||
const auto& a = eval(*ast.nodes[0], env).to_array();
|
const auto& a = eval(*ast.nodes[0], env).to_array();
|
||||||
const auto& i = eval(*ast.nodes[1], env).to_long();
|
const auto& i = eval(*ast.nodes[1], env).to_long();
|
||||||
|
|
||||||
if (0 <= i && i < a.values.size()) {
|
if (0 <= i && i < static_cast<long>(a.values.size())) {
|
||||||
return a.values[i];
|
return a.values[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user