summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-07-20 22:03:43 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-07-20 22:09:51 +0200
commit2d391d8f369a40b438a1b246c888bb42b2e14278 (patch)
tree726f594ef52eb8b32c12d488c54e2a3e35a6acbb /kconfiglib.py
parent52a099982ecb66eec1ae180f02fe58f2d9264078 (diff)
Fix detection of hex literals
Missing 'not'. Add some literals to the Kstrict testcase.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 988c319..e5db25c 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -5136,7 +5136,7 @@ def _is_num(s):
try:
int(s)
except ValueError:
- if s.startswith(("0x", "0X")):
+ if not s.startswith(("0x", "0X")):
return False
try: