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
1 file changed