Dart - fix flex-builder compilation error (#6722)
* Dart - fix flex-builder compilation error * DartTest.sh - run all tests
This commit is contained in:
parent
089f48a4a6
commit
838c93b843
|
@ -559,12 +559,13 @@ class _StackValue {
|
|||
|
||||
BitWidth elementWidth(int size, int index) {
|
||||
if (ValueTypeUtils.isInline(_type)) return _width;
|
||||
final offset = offsetLoc - _offset!;
|
||||
final offset = _offset!;
|
||||
for (var i = 0; i < 4; i++) {
|
||||
final width = 1 << i;
|
||||
final offsetLoc =
|
||||
size + BitWidthUtil.paddingSize(size, width) + index * width;
|
||||
final bitWidth = BitWidthUtil.uwidth(offset);
|
||||
final bitWidth = BitWidthUtil.uwidth(size +
|
||||
BitWidthUtil.paddingSize(size, width) +
|
||||
index * width -
|
||||
offset);
|
||||
if (1 << bitWidth.index == width) {
|
||||
return bitWidth;
|
||||
}
|
||||
|
@ -643,6 +644,7 @@ class _StackValue {
|
|||
class _StackPointer {
|
||||
int stackPosition;
|
||||
bool isVector;
|
||||
|
||||
_StackPointer(this.stackPosition, this.isVector);
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ cd ../dart
|
|||
# update packages
|
||||
dart pub get
|
||||
# Execute the sample.
|
||||
dart test/flat_buffers_test.dart
|
||||
dart test
|
||||
|
||||
# cleanup
|
||||
rm ../dart/test/monsterdata_test.mon
|
||||
|
|
Loading…
Reference in New Issue