summaryrefslogtreecommitdiff
path: root/boil
diff options
context:
space:
mode:
Diffstat (limited to 'boil')
-rw-r--r--boil/library/BoilVisitor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/boil/library/BoilVisitor.java b/boil/library/BoilVisitor.java
index 43360b9..00d7dc7 100644
--- a/boil/library/BoilVisitor.java
+++ b/boil/library/BoilVisitor.java
@@ -37,7 +37,7 @@ public class BoilVisitor extends GJDepthFirst<String,String> {
return attr_index;
}
- public String memoryReadFilter(String rhs) {
+ public String memoryReadFilter(TokenKey rhs) {
/**
* when a method recieves an id of either an alias
* or an untranslated variable name, this method will
@@ -48,7 +48,7 @@ public class BoilVisitor extends GJDepthFirst<String,String> {
TypeInstance t;
if ((t = this.symt.getType(rhs)) != null) {
// memory store
- ClassInstance cur = this.symt.getClass(this.symt.getActive(TypeEnum.classname));
+ ClassInstance cur = (ClassInstance) this.symt.getActive(TypeEnum.classname);
attr_index = getVarIndex(cur, t);
rhs = String.format("[this+%d]", attr_index);
}