We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 864456c + e30b1f5 commit fec25a5Copy full SHA for fec25a5
unittests/AST/SourceLocTests.cpp
@@ -23,7 +23,8 @@ namespace swift {
23
void PrintTo(SourceLoc loc, std::ostream *os) {
24
*os << loc.getOpaquePointerValue();
25
if (loc.isValid())
26
- *os << " '" << *(char *)loc.getOpaquePointerValue() << "'";
+ *os << " '" << *static_cast<const char *>(loc.getOpaquePointerValue())
27
+ << "'";
28
}
29
30
void PrintTo(SourceRange range, std::ostream *os) {
0 commit comments