mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
testcrypt: handle int as a return type.
I accepted both 'int' and 'uint' as function argument types, but hadn't previously noticed that only 'uint' is handled properly as a return type. Now both are.
This commit is contained in:
parent
a6021a2f29
commit
af72a11d54
@ -176,7 +176,7 @@ def make_retval(rettype, word, unpack_strings):
|
|||||||
retwords[0])
|
retwords[0])
|
||||||
if rettype.startswith("val_"):
|
if rettype.startswith("val_"):
|
||||||
return Value(rettype, word)
|
return Value(rettype, word)
|
||||||
elif rettype == "uint":
|
elif rettype == "int" or rettype == "uint":
|
||||||
return int(word, 0)
|
return int(word, 0)
|
||||||
elif rettype == "boolean":
|
elif rettype == "boolean":
|
||||||
assert word == b"true" or word == b"false"
|
assert word == b"true" or word == b"false"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user