From 96e20c600f6498c403445956077f85dd2fb548aa Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 23 Sep 2014 12:09:26 +0000 Subject: tests: Fix uctypes tests to run on 64bit arch; enable more native tests. --- tests/extmod/uctypes_ptr_le.py | 2 +- tests/extmod/uctypes_ptr_native_le.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/extmod') diff --git a/tests/extmod/uctypes_ptr_le.py b/tests/extmod/uctypes_ptr_le.py index ef9890c3f..4125dd86f 100644 --- a/tests/extmod/uctypes_ptr_le.py +++ b/tests/extmod/uctypes_ptr_le.py @@ -9,7 +9,7 @@ desc = { bytes = b"01" addr = uctypes.addressof(bytes) -buf = addr.to_bytes(4) +buf = addr.to_bytes(uctypes.sizeof(desc)) S = uctypes.struct(desc, uctypes.addressof(buf), uctypes.LITTLE_ENDIAN) diff --git a/tests/extmod/uctypes_ptr_native_le.py b/tests/extmod/uctypes_ptr_native_le.py index 139ed3280..ba06b2650 100644 --- a/tests/extmod/uctypes_ptr_native_le.py +++ b/tests/extmod/uctypes_ptr_native_le.py @@ -15,7 +15,7 @@ desc = { bytes = b"01" addr = uctypes.addressof(bytes) -buf = addr.to_bytes(4) +buf = addr.to_bytes(uctypes.sizeof(desc)) S = uctypes.struct(desc, uctypes.addressof(buf), uctypes.NATIVE) -- cgit v1.2.3