diff options
| author | Chinmay <chinmay1dd@gmail.com> | 2020-09-10 09:25:20 -0700 |
|---|---|---|
| committer | Chinmay <chinmay1dd@gmail.com> | 2020-09-10 10:12:31 -0700 |
| commit | 6b036f75273ff4b8ac1130d7524b320be096c15b (patch) | |
| tree | 26b1ea33029973b6229b011316323e1330f8d89d /python | |
| parent | 167ced17956bbb79aee3a6e6ef88079d822427cb (diff) | |
Fix Windows file deletion issue in tests
Diffstat (limited to 'python')
| -rw-r--r-- | python/function.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py index bf5afb87..ffec3452 100644 --- a/python/function.py +++ b/python/function.py @@ -450,12 +450,12 @@ class PossibleValueSet(object): result.table.append(LookupTableEntry(from_list, result.table[i].toValue)) result.count = self.count elif (self.type == RegisterValueType.InSetOfValues) or (self.type == RegisterValueType.NotInSetOfValues): - values = (ctypes.c_long * self.count)() + values = (ctypes.c_longlong * self.count)() i = 0 for value in self.values: values[i] = value i += 1 - result.valueSet = ctypes.cast(values, ctypes.POINTER(ctypes.c_long)) + result.valueSet = ctypes.cast(values, ctypes.POINTER(ctypes.c_longlong)) result.count = self.count return result |
