summaryrefslogtreecommitdiff
path: root/lib/Variables.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Variables.cc')
-rw-r--r--lib/Variables.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Variables.cc b/lib/Variables.cc
index d96cad8..8ba5374 100644
--- a/lib/Variables.cc
+++ b/lib/Variables.cc
@@ -67,7 +67,7 @@ void Variables::Add(const String & s) {
void Variables::Del(int i) {
nbvars--;
- Vars.erase(&Vars[i], &Vars[i]);
+ Vars.erase(Vars.begin() + i, Vars.begin() + i);
}
void Variables::Del(const String & name) {