From af72a11d544968dabc29b3d015d86bed62499377 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 6 Jan 2020 19:57:51 +0000 Subject: [PATCH] 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. --- test/testcrypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testcrypt.py b/test/testcrypt.py index ab1e485d..999453bc 100644 --- a/test/testcrypt.py +++ b/test/testcrypt.py @@ -176,7 +176,7 @@ def make_retval(rettype, word, unpack_strings): retwords[0]) if rettype.startswith("val_"): return Value(rettype, word) - elif rettype == "uint": + elif rettype == "int" or rettype == "uint": return int(word, 0) elif rettype == "boolean": assert word == b"true" or word == b"false"