Skip to content

Commit 73799f1

Browse files
authored
Merge pull request #20 from cryptlex/ahmad/unlimited-syntax
Unlimited syntax
2 parents 03b67c2 + 8235ae7 commit 73799f1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cryptlex/lexfloatclient/lexfloatclient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ def GetHostLicenseMeterAttribute(name):
273273
HostLicenseMeterAttribute: values of meter attribute allowed and total uses
274274
"""
275275
cstring_name = LexFloatClientNative.get_ctype_string(name)
276-
allowed_uses = ctypes.c_uint()
277-
total_uses = ctypes.c_uint()
278-
gross_uses = ctypes.c_uint()
276+
allowed_uses = ctypes.c_int64()
277+
total_uses = ctypes.c_uint64()
278+
gross_uses = ctypes.c_uint64()
279279
status = LexFloatClientNative.GetHostLicenseMeterAttribute(
280280
cstring_name, ctypes.byref(allowed_uses), ctypes.byref(total_uses), ctypes.byref(gross_uses))
281281
if status == LexFloatStatusCodes.LF_OK:

cryptlex/lexfloatclient/lexfloatclient_native.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def byte_to_string(input):
160160
GetHostLicenseMetadata.restype = c_int
161161

162162
GetHostLicenseMeterAttribute = library.GetHostLicenseMeterAttribute
163-
GetHostLicenseMeterAttribute.argtypes = [CSTRTYPE, POINTER(c_uint32), POINTER(c_uint32), POINTER(c_uint32)]
163+
GetHostLicenseMeterAttribute.argtypes = [CSTRTYPE, POINTER(c_int64), POINTER(c_uint64), POINTER(c_uint64)]
164164
GetHostLicenseMeterAttribute.restype = c_int
165165

166166
GetHostLicenseExpiryDate = library.GetHostLicenseExpiryDate

0 commit comments

Comments
 (0)