summaryrefslogtreecommitdiff
path: root/content/datastructures/persistentArray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'content/datastructures/persistentArray.cpp')
-rw-r--r--content/datastructures/persistentArray.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/datastructures/persistentArray.cpp b/content/datastructures/persistentArray.cpp
index 60d8b17..8326700 100644
--- a/content/datastructures/persistentArray.cpp
+++ b/content/datastructures/persistentArray.cpp
@@ -10,8 +10,8 @@ struct persistentArray {
T get(int p, int t) {return data[p].get(t);}
int set(int p, T value) {
- mods.push_back({p, time});
- return data[p].set(value);
+ mods.push_back({p, data[p].set(value)});
+ return mods.back().second;
}
void reset(int t) {