Skip to content

Commit

Permalink
novel: use explicit conditional lambda for compound boolean in If
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla committed Nov 10, 2023
1 parent dd5ca44 commit 198a52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/livemaker/lsb/novel.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class TWdOpeVar(BaseTWdGlyph):
"unk3" / construct.If(construct.this._._.version > 100, construct.Int32ul),
"link_name"
/ construct.If(
construct.this._._.version < 105 and construct.this._._.version > 100,
lambda this: 100 < this._._.version < 105,
construct.PascalString(construct.Int32ul, "cp932"),
),
"link" / construct.If(construct.this._._.version >= 105, construct.Int32sl),
Expand Down

0 comments on commit 198a52d

Please sign in to comment.