Open liujuncn opened 1 year ago
in charref(): if name[0] in ["x", "X"]: c = int(name[1:], 16) else: c = int(name) if name like "xabcdeabcdeabcdeabcde" will cause chr(c) throw OverflowError.
if name[0] in ["x", "X"]: c = int(name[1:], 16) else: c = int(name)
I simply fixed it with: c = int(name[1:5], 16)
c = int(name[1:5], 16)
in charref():
if name[0] in ["x", "X"]: c = int(name[1:], 16) else: c = int(name)
if name like "xabcdeabcdeabcdeabcde" will cause chr(c) throw OverflowError.