Merge branch 'developer' into fix/pattern
All checks were successful
Build on RHEL9 / build (push) Successful in 3m43s
Build on RHEL8 / build (push) Successful in 4m44s

This commit is contained in:
Erik Fröjdh
2026-01-20 17:04:29 +01:00
committed by GitHub
3 changed files with 4 additions and 62 deletions

View File

@@ -1908,6 +1908,8 @@ class Detector(CppDetectorApi):
raise ValueError("bit_position must be provided when passing int address")
if not isinstance(bit_position, int):
raise ValueError("bit_position must be int")
if isinstance(bitname_or_addr, int):
bitname_or_addr = RegisterAddress(bitname_or_addr)
return BitAddress(bitname_or_addr, bit_position)
# New usage with str or BitAddress