about summary refs log tree commit diff stats
path: root/example/jitter/memstruct.py
diff options
context:
space:
mode:
authorFlorent Monjalet <florent.monjalet@gmail.com>2015-11-30 10:06:35 +0100
committerFlorent Monjalet <florent.monjalet@gmail.com>2016-01-18 14:02:31 +0100
commit2b77be65a2810900898582f8a78d7d8a51acfe35 (patch)
treef3a8b2d7ead251d241f3a09ee50d56eb2e50ad1b /example/jitter/memstruct.py
parent0682ca8d6e82626bb0325d96d19342fbede33e21 (diff)
downloadmiasm-2b77be65a2810900898582f8a78d7d8a51acfe35.tar.gz
miasm-2b77be65a2810900898582f8a78d7d8a51acfe35.zip
MemStruct: Array/PinnedArray homogeneity
Array access logic has moved to Array, Pinned(Sized)Array just contains
the logic to interface with memory
Diffstat (limited to 'example/jitter/memstruct.py')
-rw-r--r--example/jitter/memstruct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/jitter/memstruct.py b/example/jitter/memstruct.py
index 6e8e13af..038622ba 100644
--- a/example/jitter/memstruct.py
+++ b/example/jitter/memstruct.py
@@ -126,7 +126,7 @@ class DataArray(PinnedStruct):
         # PinnedStruct containing only one field named "val" will be created, so
         # that Ptr can point to a PinnedStruct instance. Here,
         # data_array.array.deref.val will allow to access an Array
-        ("arrayptr", Ptr("<I", PinnedSizedArray, Num("B"), 16)),
+        ("arrayptr", Ptr("<I", Array(Num("B"), 16))),
         # Array of 10 uint8
         ("array", Array(Num("B"), 16)),
     ]