Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1351)

Unified Diff: mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart

Issue 2005343003: Mojom compiler frontend: Change the type of the |offset| field to uint32. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
diff --git a/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
index 4ef15b2ad8001dbd34937478d438efed627f7d91..7e8bad24f797228e500c7302b21de40735b9486a 100644
--- a/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
@@ -829,7 +829,7 @@ class StructField extends bindings.Struct {
}
if (mainDataHeader.version >= 0) {
- result.offset = decoder0.decodeInt32(48);
+ result.offset = decoder0.decodeUint32(48);
}
if (mainDataHeader.version >= 0) {
@@ -866,7 +866,7 @@ class StructField extends bindings.Struct {
rethrow;
}
try {
- encoder0.encodeInt32(offset, 48);
+ encoder0.encodeUint32(offset, 48);
} on bindings.MojoCodecError catch(e) {
e.message = "Error encountered while encoding field "
"offset of struct StructField: $e";

Powered by Google App Engine
This is Rietveld 408576698