diff options
| author | Florent Monjalet <florent.monjalet@gmail.com> | 2015-11-30 11:13:13 +0100 |
|---|---|---|
| committer | Florent Monjalet <florent.monjalet@gmail.com> | 2016-01-18 14:02:31 +0100 |
| commit | 3c8d4335d26a33d3e14be83ef8b1d7ceed3ad769 (patch) | |
| tree | c3cb4da8c4182600aaa1b7ff6d0114e747f9c2b4 /test | |
| parent | f21429370a65504745290c39ecb8113163976232 (diff) | |
| download | miasm-3c8d4335d26a33d3e14be83ef8b1d7ceed3ad769.tar.gz miasm-3c8d4335d26a33d3e14be83ef8b1d7ceed3ad769.zip | |
MemStruct: allow Type instance in cast
Diffstat (limited to '')
| -rw-r--r-- | test/analysis/mem.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/analysis/mem.py b/test/analysis/mem.py index 8d4a56d3..90022fe9 100644 --- a/test/analysis/mem.py +++ b/test/analysis/mem.py @@ -426,11 +426,10 @@ assert PinnedShort(jitter.vm, ms2.s2.get_addr(4)).val == 0xabcd # void* style cast PinnedPtrVoid = Ptr("I", Void()).pinned -PinnedPtrMyStruct = Ptr("I", MyStruct).pinned p = PinnedPtrVoid(jitter.vm) p.val = mstruct.get_addr() assert p.deref.cast(MyStruct) == mstruct -assert p.cast(PinnedPtrMyStruct).deref == mstruct +assert p.cast(Ptr("I", MyStruct)).deref == mstruct # Field equality tests assert RawStruct("IH") == RawStruct("IH") |