Skip to content

Commit ea94b81

Browse files
committed
fix(visitor): replace abspath with normpath to correct logics
1 parent 40fd0a1 commit ea94b81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dwarf2cpp/visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def visit_namespace(self, die: DWARFDie) -> None:
266266
if not decl_file:
267267
continue
268268

269-
decl_file = posixpath.abspath(decl_file.replace("\\", "/"))
269+
decl_file = posixpath.normpath(decl_file.replace("\\", "/"))
270270
if not decl_file.startswith(self._base_dir):
271271
continue
272272

0 commit comments

Comments
 (0)