summaryrefslogtreecommitdiff
path: root/content/datastructures/persistentArray.cpp
diff options
context:
space:
mode:
authormzuenni <michi.zuendorf@gmail.com>2024-07-30 23:58:19 +0200
committermzuenni <michi.zuendorf@gmail.com>2024-07-30 23:58:35 +0200
commitd7905f7dec9e306d7d6f907ce35abc40f24af1c5 (patch)
treed2275dca21776ce7c808307d6e18b228a36d77a5 /content/datastructures/persistentArray.cpp
parentb79123a4da8eb3c1aec30c4c03abf032daa0f1b1 (diff)
more tests
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) {