controls/DebugVariablePanel/DebugVariableItem.py
branchpython3
changeset 3772 ec2babbd5698
parent 3765 88fe6fc9fd38
child 3885 22a009561502
--- a/controls/DebugVariablePanel/DebugVariableItem.py	Tue Nov 01 14:19:23 2022 +0800
+++ b/controls/DebugVariablePanel/DebugVariableItem.py	Tue Nov 01 14:21:16 2022 +0800
@@ -255,7 +255,7 @@
 
                 if self.VariableType in ["STRING", "WSTRING"]:
                     # String data value is CRC
-                    num_value = (binascii.crc32(value) & STRING_CRC_MASK)
+                    num_value = (binascii.crc32(value.encode()) & STRING_CRC_MASK)
                 elif self.VariableType in ["TIME", "TOD", "DT", "DATE"]:
                     # Numeric value of time type variables
                     # is represented in seconds