DescriptionMake dynamic_annotations build with -Wconstant-conversion from newer clangs.
After http://llvm.org/viewvc/llvm-project?rev=259271&view=rev, clang points
out that lineno is sometimes assigned a value > SHRT_MAX, which causes
an overflow. All values are smaller than USHRT_MAX, so just make lineno
an unsigned short.
No behavior change.
BUG=none
Committed: https://crrev.com/6ef06b461ccae125f8c8d6e33dde10c550ff3780
Cr-Commit-Position: refs/heads/master@{#372952}
Patch Set 1 #
Messages
Total messages: 12 (3 generated)
|