diff options
Diffstat (limited to 'src/hir_conv/constant_evaluation.cpp')
-rw-r--r-- | src/hir_conv/constant_evaluation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hir_conv/constant_evaluation.cpp b/src/hir_conv/constant_evaluation.cpp index 286981f7..c5d9029c 100644 --- a/src/hir_conv/constant_evaluation.cpp +++ b/src/hir_conv/constant_evaluation.cpp @@ -127,7 +127,7 @@ namespace { auto fit = impl.m_methods.find(e.item); if( fit == impl.m_methods.end() ) continue ; - return &fit->second; + return &fit->second.data; } break; case EntType::Struct: break; @@ -364,7 +364,7 @@ namespace { // ERROR(node.span(), E0000, "Calling non-const function in const context - " << node.m_path); //} if( fcn.m_args.size() != node.m_args.size() ) { - ERROR(node.span(), E0000, "Incorrect argument count for " << node.m_path); + ERROR(node.span(), E0000, "Incorrect argument count for " << node.m_path << " - expected " << fcn.m_args.size() << ", got " << node.m_args.size()); } for(unsigned int i = 0; i < fcn.m_args.size(); i ++ ) { |