Commit 83413750 authored by Sean McBride's avatar Sean McBride
Browse files

Added explicit cast to pacify UBSan’s “implicit-integer-truncation”

While building VTK itself, UBSan would warn of an implicit int to char conversion that truncated.  The explicit cast prevents UBSan from warning.
parent 155f7088
......@@ -4732,7 +4732,7 @@ void doxygen_comment()
}
if (l < 256)
{
linetext[l++] = c2;
linetext[l++] = (char)c2;
}
if (c2 == '\n' || (c1 == '*' && c2 == '/'))
{
......
......@@ -1089,7 +1089,7 @@ void doxygen_comment()
}
if (l < 256)
{
linetext[l++] = c2;
linetext[l++] = (char)c2;
}
if (c2 == '\n' || (c1 == '*' && c2 == '/'))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment