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

Unified Diff: mojom/mojom_parser/mojom/computed_data.go

Issue 1825653002: Mojom frontend: Correctly handle empty structs in computeVersionInfo() (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase and regenerate sha1s. Created 4 years, 9 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: mojom/mojom_parser/mojom/computed_data.go
diff --git a/mojom/mojom_parser/mojom/computed_data.go b/mojom/mojom_parser/mojom/computed_data.go
index e0a3438666b90e092616db8f82d78a5110d068d3..fc70091bb5de0c1e17b51c1700ee98df056fa274 100644
--- a/mojom/mojom_parser/mojom/computed_data.go
+++ b/mojom/mojom_parser/mojom/computed_data.go
@@ -201,7 +201,7 @@ func (e *StructFieldMinVersionError) Error() string {
func (s *MojomStruct) computeVersionInfo() error {
s.versionInfo = make([]StructVersion, 0)
previousMinVersion := uint32(0)
- payloadSizeSoFar := uint32(0)
+ payloadSizeSoFar := structHeaderSize
for i, field := range s.fieldsInOrdinalOrder {
value, literalValue, found, ok := field.minVersionAttribute()
if found == false {
« no previous file with comments | « mojo/public/tools/bindings/mojom_tool/bin/mac64/mojom.sha1 ('k') | mojom/mojom_parser/serialization/serialization_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698