Use VS 2017 and 2019 on CI, fix cast issue in dart_idl (#5740)

* vs2019

* another attempt

* syntax

* fewer

* fix dart
This commit is contained in:
Dan Field
2020-01-27 10:03:00 -08:00
committed by Wouter van Oortmerssen
parent 316d7c2089
commit f2a1272303
2 changed files with 18 additions and 7 deletions

View File

@@ -454,7 +454,7 @@ class DartGenerator : public BaseGenerator {
it != struct_def.fields.vec.end(); ++it) {
auto &field = **it;
if (field.deprecated) continue;
auto offset = it - struct_def.fields.vec.begin();
auto offset = static_cast<int>(it - struct_def.fields.vec.begin());
non_deprecated_fields.push_back(std::make_pair(offset, &field));
}