summaryrefslogtreecommitdiff
path: root/src/cli/runtime/PersistentHashtableMap.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/runtime/PersistentHashtableMap.cs')
-rw-r--r--src/cli/runtime/PersistentHashtableMap.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/runtime/PersistentHashtableMap.cs b/src/cli/runtime/PersistentHashtableMap.cs
index a833fa4c..0bf8930b 100644
--- a/src/cli/runtime/PersistentHashtableMap.cs
+++ b/src/cli/runtime/PersistentHashtableMap.cs
@@ -98,7 +98,7 @@ public IPersistentMap assocEx(Object key, Object val) {
return create(_count + incr, newArray, growAtCount);
}
-public IPersistentMap assoc(Object key, Object val) {
+public Associative assoc(Object key, Object val) {
if(_count > growAtCount)
return grow().assoc(key, val);
int i = bucketFor(key,array);
@@ -116,7 +116,7 @@ PersistentArray doPut(int i,Object key,Object val,PersistentArray array){
IPersistentMap newEntries;
if (entries != null)
{
- newEntries = entries.assoc(key, val);
+ newEntries = (IPersistentMap)entries.assoc(key, val);
if(newEntries == entries) //already there with same value, no op
return array;
}