diff options
Diffstat (limited to 'src/c.cpp')
-rw-r--r-- | src/c.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -158,7 +158,7 @@ struct CEngine : public Engine { CVal compileDot(CEnv& cenv, CVal tup, int32_t index); CVal compileLiteral(CEnv& cenv, const AST* lit); CVal compileString(CEnv& cenv, const char* str); - CVal compilePrimitive(CEnv& cenv, const APrimitive* prim); + CVal compilePrimitive(CEnv& cenv, const ACall* prim); CVal compileIf(CEnv& cenv, const ACall* aif); CVal compileMatch(CEnv& cenv, const ACall* match); CVal compileGlobal(CEnv& cenv, const AType* type, const string& sym, CVal val); @@ -235,8 +235,8 @@ CEngine::compileIf(CEnv& cenv, const ACall* aif) Value* varname = new string(cenv.penv.gensymstr("if")); out += (format("%s %s;\n") % *llType(cenv.type(aif)) % *varname).str(); size_t idx = 1; - for (AIf::const_iterator i = aif->iter_at(1); ; ++i, idx += 2) { - AIf::const_iterator next = i; + for (ATuple::const_iterator i = aif->iter_at(1); ; ++i, idx += 2) { + ATuple::const_iterator next = i; if (++next == aif->end()) break; @@ -268,9 +268,9 @@ CEngine::compileMatch(CEnv& cenv, const ACall* match) } CVal -CEngine::compilePrimitive(CEnv& cenv, const APrimitive* prim) +CEngine::compilePrimitive(CEnv& cenv, const ACall* prim) { - APrimitive::const_iterator i = prim->begin(); + ATuple::const_iterator i = prim->begin(); ++i; Value* a = llVal(resp_compile(cenv, *i++)); |