diff options
Diffstat (limited to 'src/compile.cpp')
-rw-r--r-- | src/compile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile.cpp b/src/compile.cpp index 4d8e98d..554fab6 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -130,7 +130,7 @@ compile_dot(CEnv& cenv, const ATuple* dot) throw() const ALiteral<int32_t>* index = (ALiteral<int32_t>*)(*++i); assert(index->tag() == T_INT32); CVal tupVal = resp_compile(cenv, tup); - return cenv.engine()->compileDot(cenv, tupVal, index->val); + return cenv.engine()->compileDot(cenv, tupVal, index->val + 1); // + 1 to skip RTTI } static CVal |