diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-20 21:58:48 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-20 21:58:48 -0800 |
commit | f22250a174d5ad5abf8bf99ad140ced52563aee2 (patch) | |
tree | 9c18edbad8b10e7b310032dbd4ad0860f28e6836 /041jump_target.cc | |
parent | 791c5eb1398bff36c74b1f7581ddff70d298cbc5 (diff) | |
download | mu-f22250a174d5ad5abf8bf99ad140ced52563aee2.tar.gz |
2680
Delete all the [] that has crept in since 2377 in November.
Diffstat (limited to '041jump_target.cc')
-rw-r--r-- | 041jump_target.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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<string, long long int>& 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) { |