Merge remote-tracking branch 'origin/master'

This commit is contained in:
2022-01-16 20:35:33 +01:00
4 changed files with 165 additions and 165 deletions

3
ml.cpp
View File

@@ -1941,7 +1941,8 @@ MlValue range(std::vector<MlValue> args, MlEnvironment &env) {
if (low >= high) return MlValue(result);
while (low < high) {
result.reserve(high.as_int() - low.as_int());
while (low < high) { // use MlValue to keep number datatype
result.push_back(low);
low = low + MlValue(1l);
}