commit | efbe7eba8fa4fd2de0a9207c14a4d97f7b260537 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@chromium.org> | Thu Apr 05 17:44:46 2018 |
committer | Adam Langley <agl@chromium.org> | Thu Apr 05 17:44:46 2018 |
tree | 9cabb51a32d59a171b45aaa0e8ebe5f12d9c8a50 | |
parent | 0f17d681326c19976d0a4bfb242d4382b7bca4a4 [diff] |
cbor: comment that |SimpleValue| can be casted via |int|. The code casts an |int| to a |SimpleValue|. Since |SimpleValue| is an |enum class|, this is safe. But it might not be for a traditional |enum|, so add a comment in case it flags for anyone else. Change-Id: Ifc50115d0ae9b047167f48b3d031b89d4494eda9 Reviewed-on: https://chromium-review.googlesource.com/982609 Reviewed-by: Balazs Engedy <engedy@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#548474} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: ccb6298dd418397e170906ddb58b748960e35de7