Fixed warning message with vc++.

This commit is contained in:
yhirose 2015-07-07 12:36:24 -04:00
parent 02e1c8d38f
commit ebcaf2c0b9

View File

@ -143,7 +143,7 @@ private:
const auto& a = eval(*ast.nodes[0], env).to_array();
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];
}