summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/examples/make_code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/examples/make_code.py b/python/examples/make_code.py
index 0f2d2feb..3e0f14d0 100644
--- a/python/examples/make_code.py
+++ b/python/examples/make_code.py
@@ -44,7 +44,7 @@ def make_code(bv: BinaryView, start: int, end: int) -> None:
end = min(seg.end, end)
section_ends = [s.end for s in bv.get_sections_at(start)]
end = min(*section_ends, end)
- bv.define_data_var(start, Type.array(Type.int(1, False), end-start), f"CODE_{start:08x}")
+ bv.define_user_data_var(start, Type.array(Type.int(1, False), end-start), f"CODE_{start:08x}")
def make_code_helper(ctx: UIActionContext):
make_code(ctx.binaryView, ctx.address, ctx.address + ctx.length)