]> granicus.if.org Git - graphviz/commit
mkFont: make it more obvious to the compiler the extent of 'flags'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 16 Nov 2021 02:10:33 +0000 (18:10 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 6 Dec 2021 00:35:32 +0000 (16:35 -0800)
commitae51f22dafb65d962bd358b1df8aa928fbfb45a0
tree3a4600d41a9574475dfde0f1fcaed92d13cb772c
parent543a2214ecf7dd294dfa4989e38bb118526803a4
mkFont: make it more obvious to the compiler the extent of 'flags'

All calls to this function use literals that fit in an unsigned char. Squashes
a -Wconversion warning. This also introduces a new header constant,
`GV_TEXTFONT_FLAGS_WIDTH`.
lib/common/htmllex.c
lib/common/textspan.h