summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Field <dnfield@google.com>2020-01-27 10:03:00 -0800
committerWouter van Oortmerssen <aardappel@gmail.com>2020-01-27 10:03:00 -0800
commitf2a127230302823edadf25c2976c41b6aaacc719 (patch)
treecee2c77c3f37fae4985965e235045a56d737965a /src
parent316d7c20898ce95eacbbca734448538b66d6785f (diff)
downloadflatbuffers-f2a127230302823edadf25c2976c41b6aaacc719.tar.gz
flatbuffers-f2a127230302823edadf25c2976c41b6aaacc719.tar.bz2
flatbuffers-f2a127230302823edadf25c2976c41b6aaacc719.zip
Use VS 2017 and 2019 on CI, fix cast issue in dart_idl (#5740)
* vs2019 * another attempt * syntax * fewer * fix dart
Diffstat (limited to 'src')
-rw-r--r--src/idl_gen_dart.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_gen_dart.cpp b/src/idl_gen_dart.cpp
index b072d293..aebb0472 100644
--- a/src/idl_gen_dart.cpp
+++ b/src/idl_gen_dart.cpp
@@ -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));
}