From f22250a174d5ad5abf8bf99ad140ced52563aee2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 20 Feb 2016 21:58:48 -0800 Subject: 2680 Delete all the [] that has crept in since 2377 in November. --- 041jump_target.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '041jump_target.cc') diff --git a/041jump_target.cc b/041jump_target.cc index 92a56b8d..243513f7 100644 --- a/041jump_target.cc +++ b/041jump_target.cc @@ -28,12 +28,12 @@ void transform_labels(const recipe_ordinal r) { const instruction& inst = get(Recipe, r).steps.at(i); if (!inst.label.empty() && inst.label.at(0) == '+') { if (!contains_key(offset, inst.label)) { - offset[inst.label] = i; + put(offset, inst.label, i); } else { raise_error << maybe(get(Recipe, r).name) << "duplicate label '" << inst.label << "'" << end(); // have all jumps skip some random but noticeable and deterministic amount of code - offset[inst.label] = 9999; + put(offset, inst.label, 9999); } } } @@ -76,7 +76,7 @@ void replace_offset(reagent& x, /*const*/ map& offset, co x.set_value(0); // no jump by default return; } - x.set_value(offset[x.name]-current_offset); + x.set_value(get(offset, x.name) - current_offset); } bool is_jump_target(string label) { -- cgit 1.4.1-2-gfad0