Skip to content

Commit d4ca103

Browse files
authored
Merge pull request #1550 from elicn/fix-flags
Fix flags breakage
2 parents 4e3a691 + bcc182e commit d4ca103

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiling/os/posix/const_mapping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ def ql_open_flag_mapping(ql: Qiling, flags: int) -> int:
115115
# flags names are consistent across all classes, even if they are not supported, to maintain compatibility
116116
for ef in emul_flags:
117117
# test whether flag is set, excluding unsupported flags
118-
if (ef != FLAG_UNSUPPORTED) and (flags & ef.value):
118+
if (ef.value != FLAG_UNSUPPORTED) and (flags & ef.value):
119119
hf = host_flags[ef.name or '']
120120

121121
# if flag is also supported on the host, set it
122-
if hf != FLAG_UNSUPPORTED:
122+
if hf.value != FLAG_UNSUPPORTED:
123123
ret |= hf.value
124124

125125
# NOTE: not sure why this one is needed

0 commit comments

Comments
 (0)