commit | 0bdded6d5a6584fffe8f813ad64e602d3eb2e7f8 | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Sat Feb 26 21:10:12 2022 +0900 |
committer | Jooyung Han <jooyung@google.com> | Sat Feb 26 21:10:12 2022 +0900 |
tree | 725c06d9c8137e79aff59f815b69cc17693bd69a | |
parent | 3b04e113e68214b764b6a5ba0fd63f5d47436b06 [diff] |
Cast to the underlying type for union tags Union tags are of enum type. Streaming it would make more sense by casting to underlying types. For now casting is not required since tags are defined as `enum Tag`. But we're going to change it to `enum class Tag` which won't work with operator<< without casting. Bug: 218912230 Test: m Change-Id: Ia5e8a5c38fe23c72dffbdca320a32abdfa0eb38e