From c6b18dd15246b26276a14a719e5e57c1499d8733 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sun, 18 Apr 2021 23:43:39 +0200 Subject: [PATCH] fixed hex check in parse number code --- riscemu/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscemu/helpers.py b/riscemu/helpers.py index f325900..1e37b98 100644 --- a/riscemu/helpers.py +++ b/riscemu/helpers.py @@ -14,7 +14,7 @@ def parse_numeric_argument(arg: str): """ parse hex or int strings """ - if arg.startswith('0x') or arg.startswith('0X'): + if '0x' in arg or '0X' in arg: return int(arg, 16) return int(arg)