summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dart/lib/flat_buffers.dart2
1 files changed, 1 insertions, 1 deletions
diff --git a/dart/lib/flat_buffers.dart b/dart/lib/flat_buffers.dart
index cd1639cb..d27d4bf3 100644
--- a/dart/lib/flat_buffers.dart
+++ b/dart/lib/flat_buffers.dart
@@ -1054,7 +1054,7 @@ class StringReader extends Reader<String> {
String read(BufferContext bc, int offset) {
var strOffset = bc.derefObject(offset);
var length = bc._getUint32(strOffset);
- Uint8List bytes = bc._asUint8List(strOffset + _sizeofUint32, length);
+ var bytes = bc._asUint8List(strOffset + _sizeofUint32, length);
if (asciiOptimization && _isLatin(bytes)) {
return String.fromCharCodes(bytes);
}