summaryrefslogtreecommitdiff
path: root/src/validator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/validator.cc')
-rw-r--r--src/validator.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/validator.cc b/src/validator.cc
index 41ad9f9e..610170f9 100644
--- a/src/validator.cc
+++ b/src/validator.cc
@@ -186,7 +186,8 @@ void ScriptValidator::CheckTypeIndex(const Location* loc,
if (Failed(TypeChecker::CheckType(actual, expected))) {
PrintError(loc,
"type mismatch for %s %" PRIindex " of %s. got %s, expected %s",
- index_kind, index, desc, actual.GetName(), expected.GetName());
+ index_kind, index, desc, actual.GetName().c_str(),
+ expected.GetName().c_str());
}
}